aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorYanfei Xu <[email protected]>2021-10-13 21:41:52 +0800
committerPeter Zijlstra <[email protected]>2021-10-19 17:27:06 +0200
commit6c2787f2a20ceb49c98bd06f7dad1589eed1c951 (patch)
tree087af925e2290780f932b1b960ae47beb1db663f /net/lapb/lapb_timer.c
parent7cdacc5f52d68a9370f182c844b5b3e6cc975cc1 (diff)
locking: Remove rcu_read_{,un}lock() for preempt_{dis,en}able()
preempt_disable/enable() is equal to RCU read-side crital section, and the spinning codes in mutex and rwsem could ensure that the preemption is disabled. So let's remove the unnecessary rcu_read_lock/unlock for saving some cycles in hot codes. Signed-off-by: Yanfei Xu <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Waiman Long <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions