summaryrefslogtreecommitdiff
path: root/drivers/hwspinlock
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2023-05-09 16:49:02 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2023-05-24 08:23:18 +0300
commitcb0b50b813f6198b7d44ae8e169803440333577a (patch)
treecdfef99608a1e25ec39c5e685ec42e9494c343bb /drivers/hwspinlock
parentd36f6efbe0cb422fe1e4475717d75f3737088832 (diff)
downloadlinux-cb0b50b813f6198b7d44ae8e169803440333577a.tar.xz
module: Remove preempt_disable() from module reference counting.
The preempt_disable() section in module_put() was added in commit e1783a240f491 ("module: Use this_cpu_xx to dynamically allocate counters") while the per-CPU counter were switched to another API. The API requires that during the RMW operation the CPU remained the same. This counting API was later replaced with atomic_t in commit 2f35c41f58a97 ("module: Replace module_ref with atomic_t refcnt") Since this atomic_t replacement there is no need to keep preemption disabled while the reference counter is modified. Remove preempt_disable() from module_put(), __module_get() and try_module_get(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'drivers/hwspinlock')
0 files changed, 0 insertions, 0 deletions