aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/processor_driver.c')
-rw-r--r--drivers/acpi/processor_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index cbf1f122666b..df34bd04ae62 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -45,6 +45,7 @@
45#include <linux/cpuidle.h> 45#include <linux/cpuidle.h>
46#include <linux/slab.h> 46#include <linux/slab.h>
47#include <linux/acpi.h> 47#include <linux/acpi.h>
48#include <linux/memory_hotplug.h>
48 49
49#include <asm/io.h> 50#include <asm/io.h>
50#include <asm/cpu.h> 51#include <asm/cpu.h>
@@ -641,6 +642,7 @@ static int acpi_processor_remove(struct acpi_device *device)
641 642
642 per_cpu(processors, pr->id) = NULL; 643 per_cpu(processors, pr->id) = NULL;
643 per_cpu(processor_device_array, pr->id) = NULL; 644 per_cpu(processor_device_array, pr->id) = NULL;
645 try_offline_node(cpu_to_node(pr->id));
644 646
645free: 647free:
646 free_cpumask_var(pr->throttling.shared_cpu_map); 648 free_cpumask_var(pr->throttling.shared_cpu_map);