Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea9c167d authored by Lan Tianyu's avatar Lan Tianyu Committed by Rafael J. Wysocki
Browse files

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: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 515afdcb
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -120,6 +120,7 @@ static int acpi_cpu_soft_notify(struct notifier_block *nfb,
	unsigned int cpu = (unsigned long)hcpu;
	unsigned int cpu = (unsigned long)hcpu;
	struct acpi_processor *pr = per_cpu(processors, cpu);
	struct acpi_processor *pr = per_cpu(processors, cpu);
	struct acpi_device *device;
	struct acpi_device *device;
	action &= ~CPU_TASKS_FROZEN;


	/*
	/*
	 * CPU_STARTING and CPU_DYING must not sleep. Return here since
	 * CPU_STARTING and CPU_DYING must not sleep. Return here since