Messages in this thread | | | Date | Mon, 26 Jan 2015 18:12:00 +0100 | From | Peter Zijlstra <> | Subject | Re: [RFC PATCH] sched, timer: Use atomics for thread_group_cputimer stats |
| |
On Fri, Jan 23, 2015 at 03:45:55PM -0800, Jason Low wrote: > On a side note, if we just move the cputimer->running = 1 to after the > call to update_gt_cputime in thread_group_cputimer(), then we don't have > to worry about concurrent adds occuring in this function?
Yeah, maybe.. There are a few races there, but I figure that because we already test cputimer->running outside of cputimer->lock they're already possible.
| |