From: Steven Rostedt <rostedt@goodmis.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>, john stultz <johnstul@us.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
rostedt@goodmis.org
Subject: [PATCH 01/02 -rt] Allow for HRTIMER_RESTART in a CB_IRQSAFE callback.
Date: Mon, 03 Apr 2006 11:24:21 -0400 [thread overview]
Message-ID: <1144077861.21444.9.camel@localhost.localdomain> (raw)
This patch simply requeues a CB if HRTIMER_RESTART is set in CB_IRQSAFE
hrtimer_interrupt.
-- Steve
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Index: linux-2.6.16-rt12/kernel/hrtimer.c
===================================================================
--- linux-2.6.16-rt12.orig/kernel/hrtimer.c 2006-04-02 16:06:52.000000000 -0400
+++ linux-2.6.16-rt12/kernel/hrtimer.c 2006-04-03 10:57:18.000000000 -0400
@@ -838,8 +838,10 @@ int hrtimer_interrupt(void)
if (timer->mode == HRTIMER_CB_IRQSAFE) {
int ret = timer->function(timer);
- BUG_ON(ret != HRTIMER_NORESTART);
- timer->node.rb_parent = HRTIMER_INACTIVE;
+ if (ret == HRTIMER_RESTART)
+ enqueue_hrtimer(timer, base);
+ else
+ timer->node.rb_parent = HRTIMER_INACTIVE;
} else {
hrtimer_add_cb_pending(timer, base);
raise = 1;
reply other threads:[~2006-04-03 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1144077861.21444.9.camel@localhost.localdomain \
--to=rostedt@goodmis.org \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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®