diff options
author | Anton Blanchard <anton@samba.org> | 2015-10-29 01:44:09 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-12-02 09:34:40 +0100 |
commit | 579e633e764e6e5f7784b74e7df3e81fe11f40de (patch) | |
tree | b2c0152e295aaee02ffe74eba1b567b404115593 /arch/powerpc/kernel/swsusp.c | |
parent | powerpc: create giveup_all() (diff) | |
download | linux-579e633e764e6e5f7784b74e7df3e81fe11f40de.tar.xz linux-579e633e764e6e5f7784b74e7df3e81fe11f40de.zip |
powerpc: create flush_all_to_thread()
Create a single function that flushes everything (FP, VMX, VSX, SPE).
Doing this all at once means we only do one MSR write.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/swsusp.c')
-rw-r--r-- | arch/powerpc/kernel/swsusp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c index eae33e10b65f..6669b1752512 100644 --- a/arch/powerpc/kernel/swsusp.c +++ b/arch/powerpc/kernel/swsusp.c @@ -20,9 +20,7 @@ void save_processor_state(void) * flush out all the special registers so we don't need * to save them in the snapshot */ - flush_fp_to_thread(current); - flush_altivec_to_thread(current); - flush_spe_to_thread(current); + flush_all_to_thread(current); #ifdef CONFIG_PPC64 hard_irq_disable(); |