lkml.org 
[lkml]   [2008]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectabout 2.6.25.4-rt5 (missing global rt runtime)
Date
From

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





\
 
 \ /
  Last update: 2008-06-05 14:51    [W:0.136 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site