|
@@ -150,6 +150,7 @@ static int _cpu_down(unsigned int cpu, int tasks_frozen)
|
|
|
err = __raw_notifier_call_chain(&cpu_chain, CPU_DOWN_PREPARE | mod,
|
|
|
hcpu, -1, &nr_calls);
|
|
|
if (err == NOTIFY_BAD) {
|
|
|
+ nr_calls--;
|
|
|
__raw_notifier_call_chain(&cpu_chain, CPU_DOWN_FAILED | mod,
|
|
|
hcpu, nr_calls, NULL);
|
|
|
printk("%s: attempt to take down CPU %u failed\n",
|
|
@@ -233,6 +234,7 @@ static int __cpuinit _cpu_up(unsigned int cpu, int tasks_frozen)
|
|
|
ret = __raw_notifier_call_chain(&cpu_chain, CPU_UP_PREPARE | mod, hcpu,
|
|
|
-1, &nr_calls);
|
|
|
if (ret == NOTIFY_BAD) {
|
|
|
+ nr_calls--;
|
|
|
printk("%s: attempt to bring up CPU %u failed\n",
|
|
|
__FUNCTION__, cpu);
|
|
|
ret = -EINVAL;
|