powerpc: Don't disable kernel FP/VMX/VSX MSR bits on context switch
authorAnton Blanchard <anton@samba.org>
Thu, 29 Oct 2015 00:43:53 +0000 (11:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Dec 2015 02:52:24 +0000 (13:52 +1100)
commit07e45c120c9c61b792be62182b0a8f706ee2ab24
tree5936a948a53b1bca0dad87eaa5c23648527a8970
parent31a40e2b052c0f2b80df7b56928f9d5ff9c96933
powerpc: Don't disable kernel FP/VMX/VSX MSR bits on context switch

Writing the MSR is slow, so we want to avoid it whenever possible.

A subsequent patch will add a debug option that strictly manages the
FP/VMX/VSX unavailable bits. For now just remove it, matching what
we do in other areas of the kernel (eg enable_kernel_altivec()).

A context switch microbenchmark using yield():

http://ozlabs.org/~anton/junkcode/context_switch2.c

./context_switch2 --test=yield --fp 0 0

shows an improvement of almost 3% on POWER8.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/entry_64.S