summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2016-06-20 17:37:19 +0800
committerIngo Molnar <mingo@kernel.org>2016-07-09 13:56:15 +0200
commit8e546bfafb3121ed25c73a0c02311ec58459344a (patch)
tree9f141218a3f5d40170e280cc1d5669fc08e47324 /include
parent9acacc2ac525ef1397af63b15cef7bb77a823c06 (diff)
sched/cpuacct: Use loop to consolidate code in cpuacct_stats_show()
In cpuacct_stats_show() we currently we have copies of similar code, for each cpustat(system/user) variant. Use a loop instead to consolidate the code. This will also work better if we extend the CPUACCT_STAT_NSTATS type. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/b0597d4224655e9f333f1a6224ed9654c7d7d36a.1466415271.git.zhaolei@cn.fujitsu.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions