aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-07-22 16:51:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-28 09:57:24 -0400
commite26873bb10f722f10b1af9de05119a3d7cbc07b2 (patch)
treef5cbfab3e45ee49ff36d18784d2e789687415e15 /kernel
parent94f565598827e2015dce97f4c1ac4871ab84407b (diff)
sched: test runtime rather than period in global_rt_runtime()
Test runtime rather than period Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 0236958addcb..0d1717b00225 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -834,7 +834,7 @@ static inline u64 global_rt_period(void)
834 834
835static inline u64 global_rt_runtime(void) 835static inline u64 global_rt_runtime(void)
836{ 836{
837 if (sysctl_sched_rt_period < 0) 837 if (sysctl_sched_rt_runtime < 0)
838 return RUNTIME_INF; 838 return RUNTIME_INF;
839 839
840 return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC; 840 return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;