aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-03-25 08:51:45 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:44:59 -0400
commitea736ed5d353d7a3aa1cf8ce4cf8d947bc353fb2 (patch)
tree1675a12c641607c95c67969745dbfa12e7815cb8 /kernel/sched.c
parent112f53f5d700589de741dca67c77439e96ea94a7 (diff)
sched: fix checks
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 070eefdd90f5..62830eaec52f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -163,10 +163,11 @@ struct rt_prio_array {
163}; 163};
164 164
165struct rt_bandwidth { 165struct rt_bandwidth {
166 ktime_t rt_period; 166 /* nests inside the rq lock: */
167 u64 rt_runtime; 167 spinlock_t rt_runtime_lock;
168 spinlock_t rt_runtime_lock; 168 ktime_t rt_period;
169 struct hrtimer rt_period_timer; 169 u64 rt_runtime;
170 struct hrtimer rt_period_timer;
170}; 171};
171 172
172static struct rt_bandwidth def_rt_bandwidth; 173static struct rt_bandwidth def_rt_bandwidth;
@@ -403,6 +404,7 @@ struct rt_rq {
403 int rt_throttled; 404 int rt_throttled;
404 u64 rt_time; 405 u64 rt_time;
405 u64 rt_runtime; 406 u64 rt_runtime;
407 /* Nests inside the rq lock: */
406 spinlock_t rt_runtime_lock; 408 spinlock_t rt_runtime_lock;
407 409
408#ifdef CONFIG_RT_GROUP_SCHED 410#ifdef CONFIG_RT_GROUP_SCHED