lkml.org 
[lkml]   [2006]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add try_to_freeze() to rt-test kthreads
At Sun, 9 Jul 2006 15:19:55 +0200, Luca Tettamanti wrote:
>
> 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>

Acked-by: Thomas Gleixner <tglx@linutronix.de>

> --- 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-11 15:47    [W:0.044 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site