From: Luca Tettamanti <kronos.it@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Subject: [PATCH] Add try_to_freeze() to rt-test kthreads
Date: Sun, 9 Jul 2006 15:19:55 +0200 [thread overview]
Message-ID: <20060709131955.GA24459@dreamland.darkstar.lan> (raw)
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>
--- 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
--
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
next reply other threads:[~2006-07-09 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-09 13:19 Luca Tettamanti [this message]
2006-07-11 13:46 ` Thomas Gleixner
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=20060709131955.GA24459@dreamland.darkstar.lan \
--to=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®