History

sched,cgroup: Fix up task_groups list

With multiple instances of task_groups, for_each_rt_rq() is a noop, no task groups having been added to the rt.c list instance. This renders __enable/disable_runtime() and print_rt_stats() noop, the user (non) visible effect being that rt task groups are missing in /proc/sched_debug.

Mike Galbraith committed 14 years ago

Commit 35cf4e51 parent bea68322 files · +2 −1Browse files

Showing the changes to kernel (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/sched/core.c +1 −0
  2. kernel/sched/sched.h +1 −1
kernel/sched/core.c+1−0
@@ -7252,6 +7252,7 @@ int in_sched_functions(unsigned long addr) · 7251 unmodified lines
72527252
72537253 #ifdef CONFIG_CGROUP_SCHED
72547254 struct task_group root_task_group;
7255+LIST_HEAD(task_groups);
72557256 #endif
72567257
72577258 DECLARE_PER_CPU(cpumask_var_t, load_balance_tmpmask);
kernel/sched/sched.h+1−1
@@ -80,7 +80,7 @@ extern struct mutex sched_domains_mutex; · 79 unmodified lines
8080 struct cfs_rq;
8181 struct rt_rq;
8282
83−static LIST_HEAD(task_groups);
83+extern struct list_head task_groups;
8484
8585 struct cfs_bandwidth {
8686 #ifdef CONFIG_CFS_BANDWIDTH

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t