aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 6afa5232dbb7..6638294cec8d 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -324,7 +324,7 @@ void stop_this_cpu(void *dummy)
324 /* 324 /*
325 * Remove this CPU: 325 * Remove this CPU:
326 */ 326 */
327 cpu_clear(smp_processor_id(), cpu_online_map); 327 set_cpu_online(smp_processor_id(), false);
328 disable_local_APIC(); 328 disable_local_APIC();
329 329
330 for (;;) { 330 for (;;) {
@@ -474,12 +474,12 @@ static int __cpuinit check_c1e_idle(const struct cpuinfo_x86 *c)
474 return 1; 474 return 1;
475} 475}
476 476
477static cpumask_t c1e_mask = CPU_MASK_NONE; 477static cpumask_var_t c1e_mask;
478static int c1e_detected; 478static int c1e_detected;
479 479
480void c1e_remove_cpu(int cpu) 480void c1e_remove_cpu(int cpu)
481{ 481{
482 cpu_clear(cpu, c1e_mask); 482 cpumask_clear_cpu(cpu, c1e_mask);
483} 483}
484 484
485/* 485/*
@@ -508,8 +508,8 @@ static void c1e_idle(void)
508 if (c1e_detected) { 508 if (c1e_detected) {
509 int cpu = smp_processor_id(); 509 int cpu = smp_processor_id();
510 510
511 if (!cpu_isset(cpu, c1e_mask)) { 511 if (!cpumask_test_cpu(cpu, c1e_mask)) {
512 cpu_set(cpu, c1e_mask); 512 cpumask_set_cpu(cpu, c1e_mask);
513 /* 513 /*
514 * Force broadcast so ACPI can not interfere. Needs 514 * Force broadcast so ACPI can not interfere. Needs
515 * to run with interrupts enabled as it uses 515 * to run with interrupts enabled as it uses
@@ -556,6 +556,8 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
556 pm_idle = mwait_idle; 556 pm_idle = mwait_idle;
557 } else if (check_c1e_idle(c)) { 557 } else if (check_c1e_idle(c)) {
558 printk(KERN_INFO "using C1E aware idle routine\n"); 558 printk(KERN_INFO "using C1E aware idle routine\n");
559 alloc_cpumask_var(&c1e_mask, GFP_KERNEL);
560 cpumask_clear(c1e_mask);
559 pm_idle = c1e_idle; 561 pm_idle = c1e_idle;
560 } else 562 } else
561 pm_idle = default_idle; 563 pm_idle = default_idle;