Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

posix-cpu-timers: Remove lockdep_assert_irqs_disabled()

The lockdep_assert_irqs_disabled() was a BUG_ON() statement in the
beginning and it was added just before the "spin_lock(siglock)"
statement to ensure this lock was taken with disabled interrupts.

This is no longer the case: the siglock is acquired via
lock_task_sighand() and this function already disables the interrupts.
The lock is also acquired before this "lockdep_assert_irqs_disabled" so
it is best to remove it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r20180504152548.7166-1-bigeasy@linutronix.de

authored by

Sebastian Andrzej Siewior and committed by
Thomas Gleixner
c60c32a5 d82991a8

-2
-2
kernel/time/posix-cpu-timers.c
··· 604 604 /* 605 605 * Disarm any old timer after extracting its expiry time. 606 606 */ 607 - lockdep_assert_irqs_disabled(); 608 607 609 608 ret = 0; 610 609 old_incr = timer->it.cpu.incr; ··· 1048 1049 /* 1049 1050 * Now re-arm for the new expiry time. 1050 1051 */ 1051 - lockdep_assert_irqs_disabled(); 1052 1052 arm_timer(timer); 1053 1053 unlock: 1054 1054 unlock_task_sighand(p, &flags);