diff options
Diffstat (limited to 'kernel/sched/core.c')
| -rw-r--r-- | kernel/sched/core.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index f28ec6722f0b..7e8cbb9ee4d6 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
| @@ -7256,10 +7256,9 @@ static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota) | |||
| 7256 | return ret; | 7256 | return ret; |
| 7257 | } | 7257 | } |
| 7258 | 7258 | ||
| 7259 | static int cpu_stats_show(struct cgroup_subsys_state *css, struct cftype *cft, | 7259 | static int cpu_stats_show(struct seq_file *sf, void *v) |
| 7260 | struct seq_file *sf) | ||
| 7261 | { | 7260 | { |
| 7262 | struct task_group *tg = css_tg(css); | 7261 | struct task_group *tg = css_tg(seq_css(sf)); |
| 7263 | struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; | 7262 | struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; |
| 7264 | 7263 | ||
| 7265 | seq_printf(sf, "nr_periods %d\n", cfs_b->nr_periods); | 7264 | seq_printf(sf, "nr_periods %d\n", cfs_b->nr_periods); |
| @@ -7318,7 +7317,7 @@ static struct cftype cpu_files[] = { | |||
| 7318 | }, | 7317 | }, |
| 7319 | { | 7318 | { |
| 7320 | .name = "stat", | 7319 | .name = "stat", |
| 7321 | .read_seq_string = cpu_stats_show, | 7320 | .seq_show = cpu_stats_show, |
| 7322 | }, | 7321 | }, |
| 7323 | #endif | 7322 | #endif |
| 7324 | #ifdef CONFIG_RT_GROUP_SCHED | 7323 | #ifdef CONFIG_RT_GROUP_SCHED |
