From: roel kluin Date: Tue, 22 Jul 2008 20:51:15 +0000 (-0400) Subject: sched: test runtime rather than period in global_rt_runtime() X-Git-Tag: v2.6.27-rc3~48^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e26873bb10f722f10b1af9de05119a3d7cbc07b2;p=linux-2.6-omap-h63xx.git sched: test runtime rather than period in global_rt_runtime() Test runtime rather than period Signed-off-by: Roel Kluin Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index 0236958addc..0d1717b0022 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -834,7 +834,7 @@ static inline u64 global_rt_period(void) static inline u64 global_rt_runtime(void) { - if (sysctl_sched_rt_period < 0) + if (sysctl_sched_rt_runtime < 0) return RUNTIME_INF; return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;