]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add try_to_freeze() to rt-test kthreads
authorLuca Tettamanti <kronos.it@gmail.com>
Fri, 14 Jul 2006 07:24:13 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:53 +0000 (21:53 -0700)
commit5a10f8a04922d17eb46ed46e476a0a67f5654a74
tree972a05af48afcf1f8c9ad790e6f18e0270222296
parentd917ade7f6d3324f189c85902ef81dd18d497db2
[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 <kronos.it@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/rtmutex-tester.c