mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Karsten Wiese <annabellesgarden@yahoo.de>
To: mingo@elte.hu, tglx@timesys.com, linux-kernel@vger.kernel.org
Subject: [PATCH] 2.6.17-rt1 ommit an oops when suspending
Date: Wed, 21 Jun 2006 17:54:54 +0200	[thread overview]
Message-ID: <200606211754.55059.annabellesgarden@yahoo.de> (raw)

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@yahoo.de>



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

             reply	other threads:[~2006-06-21 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 15:54 Karsten Wiese [this message]
2006-06-21 18:28 ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200606211754.55059.annabellesgarden@yahoo.de \
    --to=annabellesgarden@yahoo.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@timesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®