lkml.org 
[lkml]   [2023]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch 12/45] posix-cpu-timers: Simplify posix_cpu_timer_set()
Date
On Tue, Jun 27 2023 at 12:51, Frederic Weisbecker wrote:
> On Tue, Jun 06, 2023 at 04:37:37PM +0200, Thomas Gleixner wrote:
>> Avoid the late sighand lock/unlock dance when a timer is not armed to
>> enforce reevaluation of the timer base so that the process wide CPU timer
>> sampling can be disabled.
>> + * SIGEV_NONE timers are never armed. In case the timer is not
>> + * armed, enforce the reevaluation of the timer base so that the
>> + * process wide cputime counter can be disabled eventually.
>> */
>> if (!sigev_none && new_expires && now < new_expires)
>> arm_timer(timer, p);
>> + else
>> + trigger_base_recalc_expires(timer, p);
>
> We don't need a recalc if sigev_none, right?

Correct.

\
 
 \ /
  Last update: 2023-06-29 20:45    [W:0.098 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site