summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
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 15:57:24 +0200
commite26873bb10f722f10b1af9de05119a3d7cbc07b2 (patch)
treef5cbfab3e45ee49ff36d18784d2e789687415e15 /kernel/sched.c
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/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
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;