diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-08-29 09:30:41 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-08-29 09:31:47 +0200 | 
| commit | eebc57f73d42095b778e899f6aa90ad050c72655 (patch) | |
| tree | 2ba80c75e9284093e6d7606dbb1b6a4bb752a2a5 /kernel/posix-cpu-timers.c | |
| parent | d3a247bfb2c26f5b67367d58af7ad8c2efbbc6c1 (diff) | |
| parent | 2a4ab640d3c28c2952967e5f63ea495555bf2a5f (diff) | |
Merge branch 'for-ingo' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6 into x86/apic
Merge reason: the SFI (Simple Firmware Interface) feature in the ACPI
              tree needs this cleanup, pull it into the APIC branch as
	      well so that there's no interactions.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/posix-cpu-timers.c')
| -rw-r--r-- | kernel/posix-cpu-timers.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index bece7c0b67b2..e33a21cb9407 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c @@ -521,11 +521,12 @@ void posix_cpu_timers_exit(struct task_struct *tsk)  }  void posix_cpu_timers_exit_group(struct task_struct *tsk)  { -	struct task_cputime cputime; +	struct signal_struct *const sig = tsk->signal; -	thread_group_cputimer(tsk, &cputime);  	cleanup_timers(tsk->signal->cpu_timers, -		       cputime.utime, cputime.stime, cputime.sum_exec_runtime); +		       cputime_add(tsk->utime, sig->utime), +		       cputime_add(tsk->stime, sig->stime), +		       tsk->se.sum_exec_runtime + sig->sum_sched_runtime);  }  static void clear_dead_task(struct k_itimer *timer, union cpu_time_count now) | 
