mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] Add try_to_freeze() to rt-test kthreads
When CONFIG_RT_MUTEX_TESTER is enabled kernel refuses to suspend the machine because it's unable to freeze the rt-test-* threads. Add 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]> Cc: Ingo Molnar <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ddca60c590
commit
60198f9992
1 changed files with 1 additions and 0 deletions
|
|
@ -275,6 +275,7 @@ static int test_func(void *data)
|
|||
|
||||
/* Wait for the next command to be executed */
|
||||
schedule();
|
||||
try_to_freeze();
|
||||
|
||||
if (signal_pending(current))
|
||||
flush_signals(current);
|
||||
|
|
|
|||
Loading…
Reference in a new issue