cputime: Use accessors to read task cputime stats
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 13 Nov 2012 13:20:55 +0000 (14:20 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 27 Jan 2013 18:23:31 +0000 (19:23 +0100)
commit6fac4829ce0ef9b7f24369086ce5f0e9f38d37bc
tree44da712b66d778c2fd701f9c96b00e108530e1a9
parent3f4724ea85b7d9055a9976fa8f30b471bdfbca93
cputime: Use accessors to read task cputime stats

This is in preparation for the full dynticks feature. While
remotely reading the cputime of a task running in a full
dynticks CPU, we'll need to do some extra-computation. This
way we can account the time it spent tickless in userspace
since its last cputime snapshot.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
16 files changed:
arch/alpha/kernel/osf_sys.c
arch/x86/kernel/apm_32.c
drivers/isdn/mISDN/stack.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/proc/array.c
include/linux/sched.h
include/linux/tsacct_kern.h
kernel/acct.c
kernel/cpu.c
kernel/delayacct.c
kernel/exit.c
kernel/posix-cpu-timers.c
kernel/sched/cputime.c
kernel/signal.c
kernel/tsacct.c