summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/swsusp.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2015-10-29 00:44:09 (GMT)
committerMichael Ellerman <mpe@ellerman.id.au>2015-12-02 08:34:40 (GMT)
commit579e633e764e6e5f7784b74e7df3e81fe11f40de (patch)
treeb2c0152e295aaee02ffe74eba1b567b404115593 /arch/powerpc/kernel/swsusp.c
parentc208505900b232ecdc81dee54cb3a032e75d88d6 (diff)
downloadlinux-579e633e764e6e5f7784b74e7df3e81fe11f40de.tar.xz
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c
index eae33e1..6669b17 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();