summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorKyle Huey <me@kylehuey.com>2017-02-14 09:11:02 +0100
committerThomas Gleixner <tglx@linutronix.de>2017-03-11 12:45:17 +0100
commitaf8b3cd3934ec60f4c2a420d19a9d416554f140b (patch)
tree1909a0e74eff01d3f4a15be59b097f63e38773ff /arch/x86/include
parentMerge tag 'tty-4.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gre... (diff)
downloadlinux-af8b3cd3934ec60f4c2a420d19a9d416554f140b.tar.xz
linux-af8b3cd3934ec60f4c2a420d19a9d416554f140b.zip
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 <tglx@linutronix.de> Signed-off-by: Kyle Huey <khuey@kylehuey.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Andy Lutomirski <luto@kernel.org> Link: http://lkml.kernel.org/r/20170214081104.9244-2-khuey@kylehuey.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions