diff options
Diffstat (limited to 'arch/powerpc/kernel/swsusp.c')
-rw-r--r-- | arch/powerpc/kernel/swsusp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c index b89e4f5a0b08..064a7ba4f02c 100644 --- a/arch/powerpc/kernel/swsusp.c +++ b/arch/powerpc/kernel/swsusp.c | |||
@@ -24,6 +24,11 @@ void save_processor_state(void) | |||
24 | flush_fp_to_thread(current); | 24 | flush_fp_to_thread(current); |
25 | flush_altivec_to_thread(current); | 25 | flush_altivec_to_thread(current); |
26 | flush_spe_to_thread(current); | 26 | flush_spe_to_thread(current); |
27 | |||
28 | #ifdef CONFIG_PPC64 | ||
29 | hard_irq_disable(); | ||
30 | #endif | ||
31 | |||
27 | } | 32 | } |
28 | 33 | ||
29 | void restore_processor_state(void) | 34 | void restore_processor_state(void) |
@@ -31,4 +36,8 @@ void restore_processor_state(void) | |||
31 | #ifdef CONFIG_PPC32 | 36 | #ifdef CONFIG_PPC32 |
32 | set_context(current->active_mm->context.id, current->active_mm->pgd); | 37 | set_context(current->active_mm->context.id, current->active_mm->pgd); |
33 | #endif | 38 | #endif |
39 | |||
40 | #ifdef CONFIG_PPC64 | ||
41 | hard_irq_enable(); | ||
42 | #endif | ||
34 | } | 43 | } |