Skip to contentSkip to conversation

2.6.17-rt1 ommit an oops when suspending

PATCH Applied Karsten Wiese 2 participants 2 messages Jun 21, 2006 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.17-rt1 ommit an oops when suspending

Hi

with this applied my AMD64 suspended resumed successfully in PREEMPT_RT mode. Erm at least until now ;-) Takes longer than with mainline.

kernel/time/clockevents.c +2 -2
diff -ru rt1/kernel/time/clockevents.c rt1-kw/kernel/time/clockevents.c
@@ -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

Applied
#1 lore raw
Quoted 5 lines · Karsten Wiese

Hi

with this applied my AMD64 suspended resumed successfully in PREEMPT_RT mode. Erm at least until now ;-) Takes longer than with mainline.

thanks, applied.

Ingo