]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / processor: Fix STARTING/DYING action in acpi_cpu_soft_notify()
authorToshi Kani <toshi.kani@hp.com>
Thu, 8 May 2014 13:58:59 +0000 (07:58 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 May 2014 14:36:03 +0000 (16:36 +0200)
commitb1cfd75c899cc6ee1c30d3a6c8b661581dd757a0
treea3c1a1263863cec836d2887d947136b95d3953c4
parent8f42446c94a187f807bd4d5b45f3f034cefcf333
ACPI / processor: Fix STARTING/DYING action in acpi_cpu_soft_notify()

During CPU online/offline testing on a large system, one of the
processors got stuck after the message "bad: scheduling from the
idle thread!".  The problem is that acpi_cpu_soft_notify() calls
acpi_bus_get_device() for all action types.  CPU_STARTING and
CPU_DYING do not allow the notify handlers to sleep.  However,
acpi_bus_get_device() can sleep in acpi_ut_acquire_mutex().

Change acpi_cpu_soft_notify() to return immediately for CPU_STARTING
and CPU_DYING as they have no action in this handler.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_driver.c