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)
commit60f2ceaa8111d9ec51af87bde4a6809f2b3235e4
treebc647589adadae17b6ce814ab2a4e36f7b1dfee0
parenta2efdbf4fcb38ec1ae99c9d54d52c34fa867dc71
posix-cpu-timers: Remove unnecessary locking around cpu_clock_sample_group

As of e78c3496790e ("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