Skip to contentSkip to conversation

Add try_to_freeze() to rt-test kthreads

PATCH In review Luca Tettamanti 2 participants 2 messages Jul 9, 2006 – Jul 11, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add try_to_freeze() to rt-test kthreads

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.

kernel/rtmutex-tester.c +1 -0
@@ -275,6 +275,7 @@
 
 		/* Wait for the next command to be executed */
 		schedule();
+		try_to_freeze();
 
 		if (signal_pending(current))
 			flush_signals(current);

Luca

Signature · 4 lines
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
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Luca Tettamanti

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.

Quoted 13 lines
kernel/rtmutex-tester.c +1 -0
@@ -275,6 +275,7 @@
 
 		/* Wait for the next command to be executed */
 		schedule();
+		try_to_freeze();
 
 		if (signal_pending(current))
 			flush_signals(current);

Luca