From: ciaby <ciaby@autistici.org>
To: rostedt@goodmis.org
Cc: linux-kernel@vger.kernel.org
Subject: about 2.6.25.4-rt5 (missing global_rt_runtime)
Date: Thu, 05 Jun 2008 12:18:49 +0000 [thread overview]
Message-ID: <4dff8905a55309d233e35c924d5abb61@localhost> (raw)
Small patch to make it compile (missing global_rt_runtime function):
diff -uNr linux-2.6.25.4.orig/kernel/sched.c linux-2.6.25.4/kernel/sched.c
--- linux-2.6.25.4.orig/kernel/sched.c 2008-06-05 14:12:30.000000000 +0200
+++ linux-2.6.25.4/kernel/sched.c 2008-06-05 13:58:48.000000000 +0200
@@ -671,6 +671,15 @@
*/
#define RUNTIME_INF ((u64)~0ULL)
+static u64 global_rt_runtime(void)
+{
+ if (sysctl_sched_rt_period < 0)
+ return RUNTIME_INF;
+ return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
+}
+
+
+
/*
* We really dont want to do anything complex within switch_to()
* on PREEMPT_RT - this check enforces this.
Cheers
Ciaby
reply other threads:[~2008-06-05 12:49 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=4dff8905a55309d233e35c924d5abb61@localhost \
--to=ciaby@autistici.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.