diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-02-10 16:37:31 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-11 14:04:19 +0100 |
commit | 3fccfd67df79c6351a156eb25a7a514e5f39c4d9 (patch) | |
tree | de4776e69e197119ac64097f3ff6239a55ad77be /include | |
parent | x86: clean up hpet timer reinit (diff) | |
download | linux-3fccfd67df79c6351a156eb25a7a514e5f39c4d9.tar.xz linux-3fccfd67df79c6351a156eb25a7a514e5f39c4d9.zip |
timers: split process wide cpu clocks/timers, fix
To decrease the chance of a missed enable, always enable the timer when we
sample it, we'll always disable it when we find that there are no active timers
in the jiffy tick.
This fixes a flood of warnings reported by Mike Galbraith.
Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 79392916d6c9..5d10fa0b6002 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2209,6 +2209,7 @@ void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times) unsigned long flags; spin_lock_irqsave(&cputimer->lock, flags); + cputimer->running = 1; *times = cputimer->cputime; spin_unlock_irqrestore(&cputimer->lock, flags); } |