aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <[email protected]>2020-03-26 16:58:10 +0100
committerJens Axboe <[email protected]>2020-03-26 10:28:19 -0600
commit4c9029e7d00f31923bcecbaab6a12ba52017924e (patch)
tree6010ae02826371b47b7bef0505bf7660e6523b51 /tools/perf/scripts/python/exported-sql-viewer.py
parentcba97ea18d92f3b9c56816fe9325aeb38a46746f (diff)
ata: let compiler optimize out ata_eh_set_lpm() on non-SATA hosts
Add !IS_ENABLED(CONFIG_SATA_HOST) to ata_eh_set_lpm() to allow compiler to optimize out the function for non-SATA configs (for PATA hosts "ap && !ap->ops->set_lpm" condition is always true so it's sufficient for the function to return zero). Code size savings on m68k arch using (modified) atari_defconfig: text data bss dec hex filename before: 17353 18 0 17371 43db drivers/ata/libata-eh.o after: 16607 18 0 16625 40f1 drivers/ata/libata-eh.o Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions