aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5ae36cc11fe5..4d6964e49711 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7854,15 +7854,14 @@ static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota)
7854 return ret; 7854 return ret;
7855} 7855}
7856 7856
7857static int cpu_stats_show(struct cgroup_subsys_state *css, struct cftype *cft, 7857static int cpu_stats_show(struct seq_file *sf, void *v)
7858 struct cgroup_map_cb *cb)
7859{ 7858{
7860 struct task_group *tg = css_tg(css); 7859 struct task_group *tg = css_tg(seq_css(sf));
7861 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; 7860 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth;
7862 7861
7863 cb->fill(cb, "nr_periods", cfs_b->nr_periods); 7862 seq_printf(sf, "nr_periods %d\n", cfs_b->nr_periods);
7864 cb->fill(cb, "nr_throttled", cfs_b->nr_throttled); 7863 seq_printf(sf, "nr_throttled %d\n", cfs_b->nr_throttled);
7865 cb->fill(cb, "throttled_time", cfs_b->throttled_time); 7864 seq_printf(sf, "throttled_time %llu\n", cfs_b->throttled_time);
7866 7865
7867 return 0; 7866 return 0;
7868} 7867}
@@ -7916,7 +7915,7 @@ static struct cftype cpu_files[] = {
7916 }, 7915 },
7917 { 7916 {
7918 .name = "stat", 7917 .name = "stat",
7919 .read_map = cpu_stats_show, 7918 .seq_show = cpu_stats_show,
7920 }, 7919 },
7921#endif 7920#endif
7922#ifdef CONFIG_RT_GROUP_SCHED 7921#ifdef CONFIG_RT_GROUP_SCHED