Skip to content

Commit a2efdbf

Browse files
ebiedermKAGA-KOKO
authored andcommitted
posix-cpu-timers: cpu_clock_sample_group() no longer needs siglock
As of e78c349 ("time, signal: Protect resource use statistics with seqlock") cpu_clock_sample_group() no longer needs siglock protection so remove the stale comment. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/87eeuevduq.fsf@x220.int.ebiederm.org
1 parent a67de48 commit a2efdbf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎kernel/time/posix-cpu-timers.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ static void __thread_group_cputime(struct task_struct *tsk, u64 *samples)
336336
/*
337337
* Sample a process (thread group) clock for the given task clkid. If the
338338
* group's cputime accounting is already enabled, read the atomic
339-
* store. Otherwise a full update is required. Task's sighand lock must be
340-
* held to protect the task traversal on a full update. clkid is already
341-
* validated.
339+
* store. Otherwise a full update is required. clkid is already validated.
342340
*/
343341
static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p,
344342
bool start)

0 commit comments

Comments
 (0)