[PATCH] 2.6.25.4-rt6: missing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: ciaby
Date: Monday, June 9, 2008 - 2:51 am

I already sent this patch, but seems that nobody cared... the last 2
revisions of the -rt kernel don't compile properly.
Second patch to fix this.
Regards

Giovanni "ciaby" Civardi

diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
linux-2.6.25.4-rt6/kernel/sched.c
--- linux-2.6.25.4-rt6.orig/kernel/sched.c      2008-06-09
11:35:57.000000000 +0200
+++ linux-2.6.25.4-rt6/kernel/sched.c   2008-06-09 11:40:45.000000000 +0200
@@ -672,6 +672,13 @@
  */
 #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.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] 2.6.25.4-rt6: missing , ciaby, (Mon Jun 9, 2:51 am)
[PATCH] 2.6.25.4-rt6: missing , ciaby, (Fri Jun 13, 3:07 am)
Re: [PATCH] 2.6.25.4-rt6: missing , Steven Rostedt, (Mon Jun 23, 3:43 pm)
Re: [PATCH] 2.6.25.4-rt6: missing , Steven Rostedt, (Mon Jun 23, 6:30 pm)