Skip to contentSkip to conversation

FIXED: arch/x86/kernel/hpet.c: /* FIXME: add schedule_work_on() */

PATCH New Leonardo de Sá Alt 1 participant 1 message May 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FIXED: arch/x86/kernel/hpet.c: /* FIXME: add schedule_work_on() */

Changed schedule_delayed_work_on for schedule_work_on by using work instead of delayed work, because the delayed work was used with delay 0.

---
 arch/x86/kernel/hpet.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
arch/x86/kernel/hpet.c +2 -4
index a198b7c..4516ba1 100644
@@ -724,12 +724,10 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
 
 	switch (action & 0xf) {
 	case CPU_ONLINE:
-		INIT_DELAYED_WORK_ON_STACK(&work.work, hpet_work);
+		INIT_WORK_ON_STACK(&work.work.work, hpet_work);
 		init_completion(&work.complete);
-		/* FIXME: add schedule_work_on() */
-		schedule_delayed_work_on(cpu, &work.work, 0);
+		schedule_work_on(cpu, &work.work.work);
 		wait_for_completion(&work.complete);
-		destroy_timer_on_stack(&work.work.timer);
 		break;
 	case CPU_DEAD:
 		if (hdev) {
Signature · 1 line
1.6.0.4