diff options
-rw-r--r-- | arch/arm64/kernel/suspend.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c index 430344e2c989..1fa9ce4afd8f 100644 --- a/arch/arm64/kernel/suspend.c +++ b/arch/arm64/kernel/suspend.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <linux/percpu.h> | ||
1 | #include <linux/slab.h> | 2 | #include <linux/slab.h> |
2 | #include <asm/cacheflush.h> | 3 | #include <asm/cacheflush.h> |
3 | #include <asm/cpu_ops.h> | 4 | #include <asm/cpu_ops.h> |
@@ -89,6 +90,13 @@ int cpu_suspend(unsigned long arg) | |||
89 | if (ret == 0) { | 90 | if (ret == 0) { |
90 | cpu_switch_mm(mm->pgd, mm); | 91 | cpu_switch_mm(mm->pgd, mm); |
91 | flush_tlb_all(); | 92 | flush_tlb_all(); |
93 | |||
94 | /* | ||
95 | * Restore per-cpu offset before any kernel | ||
96 | * subsystem relying on it has a chance to run. | ||
97 | */ | ||
98 | set_my_cpu_offset(per_cpu_offset(cpu)); | ||
99 | |||
92 | /* | 100 | /* |
93 | * Restore HW breakpoint registers to sane values | 101 | * Restore HW breakpoint registers to sane values |
94 | * before debug exceptions are possibly reenabled | 102 | * before debug exceptions are possibly reenabled |