[PATCH] 2.6.17-rt1 ommit an oops when suspending

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux