diff options
author | Kyle Huey <[email protected]> | 2017-02-14 00:11:02 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-03-11 12:45:17 +0100 |
commit | af8b3cd3934ec60f4c2a420d19a9d416554f140b (patch) | |
tree | 1909a0e74eff01d3f4a15be59b097f63e38773ff /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 434fd6353b4c83938029ca6ea7dfa4fc82d602bd (diff) |
x86/process: Optimize TIF checks in __switch_to_xtra()
Help the compiler to avoid reevaluating the thread flags for each checked
bit by reordering the bit checks and providing an explicit xor for
evaluation.
With default defconfigs for each arch,
x86_64: arch/x86/kernel/process.o
text data bss dec hex
3056 8577 16 11649 2d81 Before
3024 8577 16 11617 2d61 After
i386: arch/x86/kernel/process.o
text data bss dec hex
2957 8673 8 11638 2d76 Before
2925 8673 8 11606 2d56 After
Originally-by: Thomas Gleixner <[email protected]>
Signed-off-by: Kyle Huey <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions