|
@@ -628,11 +628,12 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
|
|
|
|
|
|
switch (action & 0xf) {
|
|
|
case CPU_ONLINE:
|
|
|
- INIT_DELAYED_WORK(&work.work, hpet_work);
|
|
|
+ INIT_DELAYED_WORK_ON_STACK(&work.work, hpet_work);
|
|
|
init_completion(&work.complete);
|
|
|
/* FIXME: add schedule_work_on() */
|
|
|
schedule_delayed_work_on(cpu, &work.work, 0);
|
|
|
wait_for_completion(&work.complete);
|
|
|
+ destroy_timer_on_stack(&work.work.timer);
|
|
|
break;
|
|
|
case CPU_DEAD:
|
|
|
if (hdev) {
|