diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-01-09 17:49:28 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-01-09 18:22:21 +0300 |
commit | fb1b8b117531f217e7d332bdc5cbdf8ebb077ea5 (patch) | |
tree | 71b91db01fb9ced140ba02de61ed3f0a7ec28038 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 368e5fbdfc60732643f34f538823ed4bc8829827 (diff) | |
download | linux-fb1b8b117531f217e7d332bdc5cbdf8ebb077ea5.tar.xz |
libata-eh: Use switch() instead of sparse array for protocol strings
Replace the sparse 256-pointer array for looking up protocol strings by
a switch() statement to reduce kernel size.
According to bloat-o-meter, this saves 910 bytes on m68k (32-bit), and
1892 bytes on arm64 (64-bit).
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions