[PATCH] Add try_to_freeze() to rt-test kthreads

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

 



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

--- 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
-
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