aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/processor_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 9dd0fa93b9e1..1c0008edccda 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -1014,9 +1014,9 @@ static acpi_status acpi_processor_hotadd_init(acpi_handle handle, int *p_cpu)
1014 1014
1015static int acpi_processor_handle_eject(struct acpi_processor *pr) 1015static int acpi_processor_handle_eject(struct acpi_processor *pr)
1016{ 1016{
1017 if (cpu_online(pr->id)) { 1017 if (cpu_online(pr->id))
1018 return (-EINVAL); 1018 cpu_down(pr->id);
1019 } 1019
1020 arch_unregister_cpu(pr->id); 1020 arch_unregister_cpu(pr->id);
1021 acpi_unmap_lsapic(pr->id); 1021 acpi_unmap_lsapic(pr->id);
1022 return (0); 1022 return (0);