diff options
author | David S. Miller <davem@davemloft.net> | 2016-06-30 05:03:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-30 05:03:36 -0400 |
commit | ee58b57100ca953da7320c285315a95db2f7053d (patch) | |
tree | 77b815a31240adc4d6326346908137fc6c2c3a96 /arch/arm64/kernel/hibernate.c | |
parent | 6f30e8b022c8e3a722928ddb1a2ae0be852fcc0e (diff) | |
parent | e7bdea7750eb2a64aea4a08fa5c0a31719c8155d (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several cases of overlapping changes, except the packet scheduler
conflicts which deal with the addition of the free list parameter
to qdisc_enqueue().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm64/kernel/hibernate.c')
-rw-r--r-- | arch/arm64/kernel/hibernate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/kernel/hibernate.c b/arch/arm64/kernel/hibernate.c index f8df75d740f4..21ab5df9fa76 100644 --- a/arch/arm64/kernel/hibernate.c +++ b/arch/arm64/kernel/hibernate.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <asm/pgtable.h> | 33 | #include <asm/pgtable.h> |
34 | #include <asm/pgtable-hwdef.h> | 34 | #include <asm/pgtable-hwdef.h> |
35 | #include <asm/sections.h> | 35 | #include <asm/sections.h> |
36 | #include <asm/smp.h> | ||
36 | #include <asm/suspend.h> | 37 | #include <asm/suspend.h> |
37 | #include <asm/virt.h> | 38 | #include <asm/virt.h> |
38 | 39 | ||
@@ -236,6 +237,11 @@ int swsusp_arch_suspend(void) | |||
236 | unsigned long flags; | 237 | unsigned long flags; |
237 | struct sleep_stack_data state; | 238 | struct sleep_stack_data state; |
238 | 239 | ||
240 | if (cpus_are_stuck_in_kernel()) { | ||
241 | pr_err("Can't hibernate: no mechanism to offline secondary CPUs.\n"); | ||
242 | return -EBUSY; | ||
243 | } | ||
244 | |||
239 | local_dbg_save(flags); | 245 | local_dbg_save(flags); |
240 | 246 | ||
241 | if (__cpu_suspend_enter(&state)) { | 247 | if (__cpu_suspend_enter(&state)) { |