mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Add try_to_freeze() to rt-test kthreads
@ 2006-07-09 13:19 Luca Tettamanti
  2006-07-11 13:46 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Tettamanti @ 2006-07-09 13:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar

Hi,
I'm running kernel 2.6.18-rc1. When CONFIG_RT_MUTEX_TESTER is enabled
kernel refuses to suspend the machine because it's unable to freeze the
rt-test-* threads. This patch adds try_to_freeze() after schedule() so
that the threads will be freezed correctly; I've tested the patch and it
lets the notebook suspends and resumes nicely.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>

--- a/kernel/rtmutex-tester.c	2006-07-09 15:15:08.540456698 +0200
+++ b/kernel/rtmutex-tester.c	2006-07-09 14:39:26.653218497 +0200
@@ -275,6 +275,7 @@
 
 		/* Wait for the next command to be executed */
 		schedule();
+		try_to_freeze();
 
 		if (signal_pending(current))
 			flush_signals(current);


Luca
-- 
Home: http://kronoz.cjb.net
"La mia teoria scientifica preferita e` quella secondo la quale gli 
 anelli di Saturno sarebbero interamente composti dai bagagli andati 
 persi nei viaggi aerei." -- Mark Russel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-11 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-09 13:19 [PATCH] Add try_to_freeze() to rt-test kthreads Luca Tettamanti
2006-07-11 13:46 ` Thomas Gleixner

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®