From: Lan Tianyu Date: Thu, 31 Jul 2014 14:28:50 +0000 (+0800) Subject: ACPI / processor: Make acpi_cpu_soft_notify() process CPU FROZEN events X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~8208^2~2^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ea9c167d93e6e2f4697f5061756f26356793cd95;p=mirror_ubuntu-zesty-kernel.git ACPI / processor: Make acpi_cpu_soft_notify() process CPU FROZEN events CPU hotplug happens during S2RAM and CPU notify event will be CPU_XXX_FROZEN. acpi_cpu_soft_notify() ignores to check these events. This also may make acpi_cpu_soft_notify() fall into sleep during CPU_DYING/STARTING_FROZEN events which don't allow callbacks to sleep. This patch is to fix it. Signed-off-by: Lan Tianyu Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index 4fcbd670415c..d9f71581b79b 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -120,6 +120,7 @@ static int acpi_cpu_soft_notify(struct notifier_block *nfb, unsigned int cpu = (unsigned long)hcpu; struct acpi_processor *pr = per_cpu(processors, cpu); struct acpi_device *device; + action &= ~CPU_TASKS_FROZEN; /* * CPU_STARTING and CPU_DYING must not sleep. Return here since