lkml.org 
[lkml]   [2021]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/6] posix-cpu-timers: Don't start process wide cputime counter if timer is disabled
On Wed, Jun 16, 2021 at 01:26:30PM +0200, Peter Zijlstra wrote:
> Right, so by the time patch #5 comes around, you seem to be at the point
> where you can do:
>
> * fetch cputime and start threadgroup counter
>
> * possibly arm timer

- possibly

>
> * if expired:
> - fire now
> - if armed, disarm (which leads to stop)
>
> Which is the other 'obvious' solution to not starting it.

So we unconditionally start and arm, and then have the early expire do
the same things as regular expire.

\
 
 \ /
  Last update: 2021-06-16 13:52    [W:0.068 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site