diff options
Diffstat (limited to 'drivers/acpi/processor_driver.c')
-rw-r--r-- | drivers/acpi/processor_driver.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index 0ca14ac7bb28..0553aeebb228 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c | |||
@@ -118,12 +118,13 @@ static int acpi_cpu_soft_notify(struct notifier_block *nfb, | |||
118 | struct acpi_device *device; | 118 | struct acpi_device *device; |
119 | action &= ~CPU_TASKS_FROZEN; | 119 | action &= ~CPU_TASKS_FROZEN; |
120 | 120 | ||
121 | /* | 121 | switch (action) { |
122 | * CPU_STARTING and CPU_DYING must not sleep. Return here since | 122 | case CPU_ONLINE: |
123 | * acpi_bus_get_device() may sleep. | 123 | case CPU_DEAD: |
124 | */ | 124 | break; |
125 | if (action == CPU_STARTING || action == CPU_DYING) | 125 | default: |
126 | return NOTIFY_DONE; | 126 | return NOTIFY_DONE; |
127 | } | ||
127 | 128 | ||
128 | if (!pr || acpi_bus_get_device(pr->handle, &device)) | 129 | if (!pr || acpi_bus_get_device(pr->handle, &device)) |
129 | return NOTIFY_DONE; | 130 | return NOTIFY_DONE; |