ARC: atomic: !LLSC: remove hack in atomic_set() for for UP
authorVineet Gupta <vgupta@kernel.org>
Tue, 21 Jan 2020 17:56:33 +0000 (09:56 -0800)
committerVineet Gupta <vgupta@kernel.org>
Tue, 24 Aug 2021 21:25:46 +0000 (14:25 -0700)
commitb1040148b2ea4ecbdb60c0d20393f4d15eee13ac
tree50e9135027cc6c6a28a13b8d915f624f77d15bbb
parentb0f839b4b91588c24bac8d320f7fc9fe2dea4517
ARC: atomic: !LLSC: remove hack in atomic_set() for for UP

!LLSC atomics use spinlock (SMP) or irq-disable (UP) to implement
criticla regions. UP atomic_set() however was "cheating" by not doing
any of that so and still being functional.

Remove this anomaly (primarily as cleanup for future code improvements)
given that this config is not worth hassle of special case code.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/include/asm/atomic-spinlock.h