[PATCH] 2.6.17-rt1 ommit an oops when suspending
From: Karsten Wiese
Date: Wed Jun 21 2006 - 11:54:03 EST
Hi
with this applied my AMD64 suspended resumed successfully
in PREEMPT_RT mode. Erm at least until now ;-)
Takes longer than with mainline.
Signed-off-by: Karsten Wiese <annabellesgraden@xxxxxxxx>
diff -ru rt1/kernel/time/clockevents.c rt1-kw/kernel/time/clockevents.c
--- rt1/kernel/time/clockevents.c 2006-06-20 21:39:21.000000000 +0200
+++ rt1-kw/kernel/time/clockevents.c 2006-06-21 17:25:50.000000000 +0200
@@ -547,7 +547,7 @@
global_eventsource_suspend(struct sys_device *dev, pm_message_t state)
{
/* Do generic stuff here */
- if (global_eventsource.event->suspend)
+ if (global_eventsource.event && global_eventsource.event->suspend)
global_eventsource.event->suspend();
return 0;
}
@@ -555,7 +555,7 @@
static int global_eventsource_resume(struct sys_device *dev)
{
/* Do generic stuff here */
- if (global_eventsource.event->resume)
+ if (global_eventsource.event && global_eventsource.event->resume)
global_eventsource.event->resume();
return 0;
}
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/