From: Toshi Kani Date: Thu, 8 May 2014 13:58:59 +0000 (-0600) Subject: ACPI / processor: Fix STARTING/DYING action in acpi_cpu_soft_notify() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~5^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8da8373447d6a57a5a9f55233d35beb15d92d0d2;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed