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
7252 7252
7253#ifdef CONFIG_CGROUP_SCHED7253#ifdef CONFIG_CGROUP_SCHED
7254struct task_group root_task_group;7254struct task_group root_task_group;
7255LIST_HEAD(task_groups);
7255#endif7256#endif
7256 7257
7257DECLARE_PER_CPU(cpumask_var_t, load_balance_tmpmask);7258DECLARE_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
80struct cfs_rq;80struct cfs_rq;
81struct rt_rq;81struct rt_rq;
82 82
83static LIST_HEAD(task_groups);83extern struct list_head task_groups;
84 84
85struct cfs_bandwidth {85struct cfs_bandwidth {
86#ifdef CONFIG_CFS_BANDWIDTH86#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