diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-03-25 13:51:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 19:44:59 +0200 |
commit | ea736ed5d353d7a3aa1cf8ce4cf8d947bc353fb2 (patch) | |
tree | 1675a12c641607c95c67969745dbfa12e7815cb8 /kernel | |
parent | 112f53f5d700589de741dca67c77439e96ea94a7 (diff) | |
download | blackbird-op-linux-ea736ed5d353d7a3aa1cf8ce4cf8d947bc353fb2.tar.gz blackbird-op-linux-ea736ed5d353d7a3aa1cf8ce4cf8d947bc353fb2.zip |
sched: fix checks
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 10 |
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 { }; struct rt_bandwidth { - ktime_t rt_period; - u64 rt_runtime; - spinlock_t rt_runtime_lock; - struct hrtimer rt_period_timer; + /* nests inside the rq lock: */ + spinlock_t rt_runtime_lock; + ktime_t rt_period; + u64 rt_runtime; + struct hrtimer rt_period_timer; }; static struct rt_bandwidth def_rt_bandwidth; @@ -403,6 +404,7 @@ struct rt_rq { int rt_throttled; u64 rt_time; u64 rt_runtime; + /* Nests inside the rq lock: */ spinlock_t rt_runtime_lock; #ifdef CONFIG_RT_GROUP_SCHED |