diff options
author | Yanfei Xu <yanfei.xu@windriver.com> | 2021-10-13 21:41:52 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-19 17:27:06 +0200 |
commit | 6c2787f2a20ceb49c98bd06f7dad1589eed1c951 (patch) | |
tree | 087af925e2290780f932b1b960ae47beb1db663f /arch/ia64 | |
parent | 7cdacc5f52d68a9370f182c844b5b3e6cc975cc1 (diff) | |
download | linux-6c2787f2a20ceb49c98bd06f7dad1589eed1c951.tar.bz2 |
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 <yanfei.xu@windriver.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20211013134154.1085649-2-yanfei.xu@windriver.com
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions