diff options
| author | Thomas Gleixner <[email protected]> | 2020-03-27 11:06:44 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2020-03-28 10:42:55 +0000 |
| commit | e98eac6ff1b45e4e73f2e6031b37c256ccb5d36b (patch) | |
| tree | 1252ed7d0059e070795e9e4e5d8d6ac06b1cee46 /drivers/clocksource/hyperv_timer.c | |
| parent | cpu/hotplug: Hide cpu_up/down() (diff) | |
| download | kernel-e98eac6ff1b45e4e73f2e6031b37c256ccb5d36b.tar.gz kernel-e98eac6ff1b45e4e73f2e6031b37c256ccb5d36b.zip | |
cpu/hotplug: Ignore pm_wakeup_pending() for disable_nonboot_cpus()
A recent change to freeze_secondary_cpus() which added an early abort if a
wakeup is pending missed the fact that the function is also invoked for
shutdown, reboot and kexec via disable_nonboot_cpus().
In case of disable_nonboot_cpus() the wakeup event needs to be ignored as
the purpose is to terminate the currently running kernel.
Add a 'suspend' argument which is only set when the freeze is in context of
a suspend operation. If not set then an eventually pending wakeup event is
ignored.
Fixes: a66d955e910a ("cpu/hotplug: Abort disabling secondary CPUs if wakeup is pending")
Reported-by: Boqun Feng <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Pavankumar Kondeti <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/clocksource/hyperv_timer.c')
0 files changed, 0 insertions, 0 deletions
