cgroup: replace cftype->read_seq_string() with cftype->seq_show()
[linux-2.6-block.git] / kernel / sched / core.c
index f28ec6722f0bd37269914fad088b85b055f99313..7e8cbb9ee4d6835649d6ddcdf4c99f329cbb42b3 100644 (file)
@@ -7256,10 +7256,9 @@ static int __cfs_schedulable(struct task_group *tg, u64 period, u64 quota)
        return ret;
 }
 
-static int cpu_stats_show(struct cgroup_subsys_state *css, struct cftype *cft,
-                         struct seq_file *sf)
+static int cpu_stats_show(struct seq_file *sf, void *v)
 {
-       struct task_group *tg = css_tg(css);
+       struct task_group *tg = css_tg(seq_css(sf));
        struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth;
 
        seq_printf(sf, "nr_periods %d\n", cfs_b->nr_periods);
@@ -7318,7 +7317,7 @@ static struct cftype cpu_files[] = {
        },
        {
                .name = "stat",
-               .read_seq_string = cpu_stats_show,
+               .seq_show = cpu_stats_show,
        },
 #endif
 #ifdef CONFIG_RT_GROUP_SCHED