mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Luca Tettamanti <kronos.it@gmail.com>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] Add try_to_freeze() to rt-test kthreads
Date: Tue, 11 Jul 2006 15:46:53 +0200	[thread overview]
Message-ID: <87y7v0tfsi.wl%tglx@linutronix.de> (raw)
In-Reply-To: <20060709131955.GA24459@dreamland.darkstar.lan>

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

      reply	other threads:[~2006-07-11 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-09 13:19 Luca Tettamanti
2006-07-11 13:46 ` Thomas Gleixner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y7v0tfsi.wl%tglx@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=akpm@osdl.org \
    --cc=kronos.it@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®