[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190219.141557.284906726764572414.davem@davemloft.net>
Date: Tue, 19 Feb 2019 14:15:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: yangbo.lu@....com, claudiu.manoil@....com,
richardcochran@...il.com, leoyang.li@....com,
netdev@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-arm-kernel@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] ptp_qoriq: don't pass a large struct by value
but instead pass it by reference
From: Colin King <colin.king@...onical.com>
Date: Tue, 19 Feb 2019 14:21:20 +0000
> From: Colin Ian King <colin.king@...onical.com>
>
> Passing the struct ptp_clock_info caps by parameter is passing over 130 bytes
> of data by value on the stack. Optimize this by passing it by reference instead.
> Also shinks the object code size:
>
> Before:
> text data bss dec hex filename
> 12596 2160 64 14820 39e4 drivers/ptp/ptp_qoriq.o
>
> After:
> text data bss dec hex filename
> 12567 2160 64 14791 39c7 drivers/ptp/ptp_qoriq.o
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Looks good, applied, thanks.
Powered by blists - more mailing lists