]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: fix checks
authorIngo Molnar <mingo@elte.hu>
Tue, 25 Mar 2008 12:51:45 +0000 (13:51 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:59 +0000 (19:44 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 070eefdd90f56cfd8ad31b981d8ffcc57b38d05e..62830eaec52fd7f304359bc2680f2aee45fd0481 100644 (file)
@@ -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