diff options
| author | Colin Ian King <[email protected]> | 2019-02-19 14:21:20 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-19 22:15:40 +0000 |
| commit | 58066ac9d7f5dcde4ef08c03b7e127f0522d9ea0 (patch) | |
| tree | 6751fcd5a6c6ef8d81726d12bc0c62a6ee63949a /drivers/clocksource/timer-ti-dm.c | |
| parent | Merge branch 'ieee802154-for-davem-2019-02-19' of git://git.kernel.org/pub/sc... (diff) | |
| download | kernel-58066ac9d7f5dcde4ef08c03b7e127f0522d9ea0.tar.gz kernel-58066ac9d7f5dcde4ef08c03b7e127f0522d9ea0.zip | |
ptp_qoriq: don't pass a large struct by value but instead pass it by reference
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-ti-dm.c')
0 files changed, 0 insertions, 0 deletions
