浏览代码

sched: fix checks

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 17 年之前
父节点
当前提交
ea736ed5d3
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      kernel/sched.c

+ 6 - 4
kernel/sched.c

@@ -163,10 +163,11 @@ struct rt_prio_array {
 };
 };
 
 
 struct rt_bandwidth {
 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;
 static struct rt_bandwidth def_rt_bandwidth;
@@ -403,6 +404,7 @@ struct rt_rq {
 	int rt_throttled;
 	int rt_throttled;
 	u64 rt_time;
 	u64 rt_time;
 	u64 rt_runtime;
 	u64 rt_runtime;
+	/* Nests inside the rq lock: */
 	spinlock_t rt_runtime_lock;
 	spinlock_t rt_runtime_lock;
 
 
 #ifdef CONFIG_RT_GROUP_SCHED
 #ifdef CONFIG_RT_GROUP_SCHED