]> git.baikalelectronics.ru Git - kernel.git/commit
posix-cpu-timers: Remove unnecessary locking around cpu_clock_sample_group
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 28 Feb 2020 17:09:19 +0000 (11:09 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 1 Mar 2020 10:21:44 +0000 (11:21 +0100)
commitc8e2b602d48844b4123e8cdaee2445865121cdae
treebc647589adadae17b6ce814ab2a4e36f7b1dfee0
parentf6344187dddb3b27b8528973a646063ff7a9744e
posix-cpu-timers: Remove unnecessary locking around cpu_clock_sample_group

As of f95c236363e8 ("time, signal: Protect resource use statistics
with seqlock") cpu_clock_sample_group no longers needs siglock
protection.  Unfortunately no one realized it at the time.

Remove the extra locking that is for cpu_clock_sample_group and not
for cpu_clock_sample.  This significantly simplifies the code.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/878skmvdts.fsf@x220.int.ebiederm.org
kernel/time/posix-cpu-timers.c