Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191434
b: refs/heads/master
c: 9c6f7e4
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 17, 2010
1 parent 5921df6 commit 800c9e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a93d2f1744206827ccf416e2cdc5018aa503314e
refs/heads/master: 9c6f7e43b4e02c161b53e97ba913855246876c61
5 changes: 4 additions & 1 deletion trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb,
struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 };
unsigned int cpu = (unsigned long)hcpu;
struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu);
struct cpu_stop_work *work;
struct task_struct *p;

switch (action & ~CPU_TASKS_FROZEN) {
Expand Down Expand Up @@ -323,6 +322,9 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb,
#ifdef CONFIG_HOTPLUG_CPU
case CPU_UP_CANCELED:
case CPU_DEAD:
{
struct cpu_stop_work *work;

/* kill the stopper */
kthread_stop(stopper->thread);
/* drain remaining works */
Expand All @@ -335,6 +337,7 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb,
put_task_struct(stopper->thread);
stopper->thread = NULL;
break;
}
#endif
}

Expand Down

0 comments on commit 800c9e7

Please sign in to comment.