linux/kernel/sched
Frederic Weisbecker d37f761dbd cputime: Consolidate cputime adjustment code
task_cputime_adjusted() and thread_group_cputime_adjusted()
essentially share the same code. They just don't use the same
source:

* The first function uses the cputime in the task struct and the
previous adjusted snapshot that ensures monotonicity.

* The second adds the cputime of all tasks in the group and the
previous adjusted snapshot of the whole group from the signal
structure.

Just consolidate the common code that does the adjustment. These
functions just need to fetch the values from the appropriate
source.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
2012-11-28 17:08:10 +01:00
..
auto_group.c sched/autogroup: Fix crash on reboot when autogroup is disabled 2012-10-30 10:26:04 +01:00
auto_group.h sched/autogroup: Fix crash on reboot when autogroup is disabled 2012-10-30 10:26:04 +01:00
clock.c
core.c sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking 2012-10-24 10:27:31 +02:00
cpupri.c sched: Fix minor code style issues 2012-07-26 11:47:00 +02:00
cpupri.h
cputime.c cputime: Consolidate cputime adjustment code 2012-11-28 17:08:10 +01:00
debug.c sched: Replace update_shares weight distribution with per-entity computation 2012-10-24 10:27:28 +02:00
fair.c Merge branch 'sched/urgent' into sched/core 2012-11-18 09:34:44 +01:00
features.h sched: Add WAKEUP_PREEMPTION feature flag, on by default 2012-10-16 10:05:27 +02:00
idle_task.c sched/nohz: Rewrite and fix load-avg computation -- again 2012-07-05 20:58:13 +02:00
Makefile sched: Move cputime code to its own file 2012-08-20 13:05:17 +02:00
rt.c sched: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW 2012-09-13 16:52:04 +02:00
sched.h sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking 2012-10-24 10:27:31 +02:00
stats.c sched: Remove sched_switch 2012-01-27 13:28:53 +01:00
stats.h
stop_task.c sched: Fix migration thread runtime bogosity 2012-08-13 18:41:55 +02:00