diff options
| author | Tejun Heo <tj@kernel.org> | 2012-04-02 01:38:44 +0400 | 
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2012-04-02 01:38:44 +0400 | 
| commit | 8a3d26151f24e2a2ffa550890144c3d54d2edb15 (patch) | |
| tree | b99f5cf8db0abc02e39e5c5107f8d4342f81effa /tools/perf/scripts/python/sched-migration.py | |
| parent | 155fead9b6347ead90e0b0396cb108a6ba6126c6 (diff) | |
| download | linux-8a3d26151f24e2a2ffa550890144c3d54d2edb15.tar.xz | |
blkcg: move blkio_group_stats_cpu and friends to blk-throttle.c
blkio_group_stats_cpu is used only by blk-throtl and has no reason to
be defined in blkcg core.
* Move blkio_group_stats_cpu to blk-throttle.c and rename it to
  tg_stats_cpu.
* blkg_policy_data->stats_cpu is replaced with throtl_grp->stats_cpu.
  prfill functions updated accordingly.
* All related macros / functions are renamed so that they have tg_
  prefix and the unnecessary @pol arguments are dropped.
* Per-cpu stats allocation code is also moved from blk-cgroup.c to
  blk-throttle.c and gets simplified to only deal with
  BLKIO_POLICY_THROTL.  percpu stat free is performed by the exit
  method throtl_exit_blkio_group().
* throtl_reset_group_stats() implemented for
  blkio_reset_group_stats_fn method so that tg->stats_cpu can be
  reset.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
