Message ID | 20121205184456.3750.35005.stgit@srivatsabhat.in.ibm.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
On 12/06, Srivatsa S. Bhat wrote: > > @@ -418,7 +418,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) > } > smpboot_park_threads(cpu); > > - err = __stop_machine(take_cpu_down, &tcd_param, cpumask_of(cpu)); > + err = stop_cpus(cpumask_of(cpu), take_cpu_down, &tcd_param); stop_one_cpu(cpu) ? Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 12/06/2012 12:38 AM, Oleg Nesterov wrote: > On 12/06, Srivatsa S. Bhat wrote: >> >> @@ -418,7 +418,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) >> } >> smpboot_park_threads(cpu); >> >> - err = __stop_machine(take_cpu_down, &tcd_param, cpumask_of(cpu)); >> + err = stop_cpus(cpumask_of(cpu), take_cpu_down, &tcd_param); > > stop_one_cpu(cpu) ? > Even I was thinking of using that. Paul, any particular reason you chose stop_cpus() over stop_one_cpu() in [1]? [1]. https://lkml.org/lkml/2012/10/30/359 Regards, Srivatsa S. Bhat -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/kernel/cpu.c b/kernel/cpu.c index c71c723..00a1edc 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -418,7 +418,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen) } smpboot_park_threads(cpu); - err = __stop_machine(take_cpu_down, &tcd_param, cpumask_of(cpu)); + err = stop_cpus(cpumask_of(cpu), take_cpu_down, &tcd_param); if (err) { /* CPU didn't die: tell everyone. Can't complain. */ smpboot_unpark_threads(cpu);