* [PATCH] FIXED: arch/x86/kernel/hpet.c: /* FIXME: add schedule_work_on() */
@ 2010-05-13 3:49 Leonardo de Sá Alt
0 siblings, 0 replies; only message in thread
From: Leonardo de Sá Alt @ 2010-05-13 3:49 UTC (permalink / raw)
To: linux-kernel; +Cc: Leonardo de Sá Alt
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 981 bytes --]
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.
Signed-off-by: Leonardo de Sá Alt <leonardoaltt@gmail.com>
---
arch/x86/kernel/hpet.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index a198b7c..4516ba1 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -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) {
--
1.6.0.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-13 3:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-13 3:49 [PATCH] FIXED: arch/x86/kernel/hpet.c: /* FIXME: add schedule_work_on() */ Leonardo de Sá Alt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®