linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: about 2.6.25.4-rt5 (missing global_rt_runtime)
@ 2008-06-05 12:45 ciaby
  0 siblings, 0 replies; only message in thread
From: ciaby @ 2008-06-05 12:45 UTC (permalink / raw)
  To: linux-rt-users


Forgot this list... sorry :)



Ciaby



-------- Original Message --------

Subject: about 2.6.25.4-rt5 (missing global_rt_runtime)

Date: Thu, 05 Jun 2008 12:18:49 +0000

From: ciaby <ciaby@autistici.org>

To: rostedt@goodmis.org



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.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-05 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 12:45 Fwd: about 2.6.25.4-rt5 (missing global_rt_runtime) ciaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).