diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2012-11-21 10:26:44 -0500 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-11-28 11:07:57 -0500 |
commit | e80d0a1ae8bb8fee0edd37427836f108b30f596b (patch) | |
tree | 437db8b1643e39d3d114a7c0e3c913455e693b70 /kernel/exit.c | |
parent | a634f93335daa8f38180a0e576ccd68a73c36eaf (diff) |
cputime: Rename thread_group_times to thread_group_cputime_adjusted
We have thread_group_cputime() and thread_group_times(). The naming
doesn't provide enough information about the difference between
these two APIs.
To lower the confusion, rename thread_group_times() to
thread_group_cputime_adjusted(). This name better suggests that
it's a version of thread_group_cputime() that does some stabilization
on the raw cputime values. ie here: scale on top of CFS runtime
stats and bound lower value for monotonicity.
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>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 346616c0092c..618f7ee56003 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1186,11 +1186,11 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p) | |||
1186 | * as other threads in the parent group can be right | 1186 | * as other threads in the parent group can be right |
1187 | * here reaping other children at the same time. | 1187 | * here reaping other children at the same time. |
1188 | * | 1188 | * |
1189 | * We use thread_group_times() to get times for the thread | 1189 | * We use thread_group_cputime_adjusted() to get times for the thread |
1190 | * group, which consolidates times for all threads in the | 1190 | * group, which consolidates times for all threads in the |
1191 | * group including the group leader. | 1191 | * group including the group leader. |
1192 | */ | 1192 | */ |
1193 | thread_group_times(p, &tgutime, &tgstime); | 1193 | thread_group_cputime_adjusted(p, &tgutime, &tgstime); |
1194 | spin_lock_irq(&p->real_parent->sighand->siglock); | 1194 | spin_lock_irq(&p->real_parent->sighand->siglock); |
1195 | psig = p->real_parent->signal; | 1195 | psig = p->real_parent->signal; |
1196 | sig = p->signal; | 1196 | sig = p->signal; |