Re: [PATCH] process cputimer is moving faster than its corresponding clock

Peter Zijlstra
2013-04-12T09:18:27Z

On Wed, 2013-04-10 at 11:48 -0400, Olivier Langlois wrote:
> If it is important to stop it then the code will require a fix anyway.
>
> 1.
> As you could start it
> indefinitely with 0 timers if calling posix_cpu_timer_set() does not
> end
> up arming a timer or
>
> 2.
>
> Having one periodic timer. The cputimer will be stopped in
> check_process_timers() to be immediatly restarted in
> posix_cpu_timer_schedule() every single time the timer will be fired.

OK, then yes that wants fixing. That was not intended.

The intent was starting the accounting when required and stopping it
when no longer needed.