diff options
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 1b3b40ad7c54..45ff4e9411e0 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1434,9 +1434,9 @@ static void print_cfs_stats(struct seq_file *m, int cpu) | |||
1434 | #ifdef CONFIG_FAIR_GROUP_SCHED | 1434 | #ifdef CONFIG_FAIR_GROUP_SCHED |
1435 | print_cfs_rq(m, cpu, &cpu_rq(cpu)->cfs); | 1435 | print_cfs_rq(m, cpu, &cpu_rq(cpu)->cfs); |
1436 | #endif | 1436 | #endif |
1437 | lock_task_group_list(); | 1437 | rcu_read_lock(); |
1438 | for_each_leaf_cfs_rq(cpu_rq(cpu), cfs_rq) | 1438 | for_each_leaf_cfs_rq(cpu_rq(cpu), cfs_rq) |
1439 | print_cfs_rq(m, cpu, cfs_rq); | 1439 | print_cfs_rq(m, cpu, cfs_rq); |
1440 | unlock_task_group_list(); | 1440 | rcu_read_unlock(); |
1441 | } | 1441 | } |
1442 | #endif | 1442 | #endif |