On Thu, 5 Sep 2019, Frederic Weisbecker wrote: > On Thu, Sep 05, 2019 at 02:03:41PM +0200, Thomas Gleixner wrote: > > + if (gettime) { > > + /* > > + * For clock_gettime() the task does not need to be the > > + * actual group leader. tsk->sighand gives access to the > > + * group's clock. > > + */ > > I'm a bit confused with the explanation. Why is it fine to do so with clock > and not with timer? tsk->sighand gives access to the group's timer as > well.
Timer stores the target task and that's the group leader for process wide while clock read is just momentary. Lemme rephrase that. Thanks, tglx