mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
xtensa: fix change_bit in exclusive access option
change_bit implementation for XCHAL_HAVE_EXCLUSIVE case changes all bits
except the one required due to copy-paste error from clear_bit.
Cc: [email protected] # v5.2+
Fixes: f7c34874f0 ("xtensa: add exclusive atomics support")
Signed-off-by: Max Filippov <[email protected]>
This commit is contained in:
parent
0c401fdf27
commit
775fd6bfef
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ static inline void change_bit(unsigned int bit, volatile unsigned long *p)
|
|||
" getex %0\n"
|
||||
" beqz %0, 1b\n"
|
||||
: "=&a" (tmp)
|
||||
: "a" (~mask), "a" (p)
|
||||
: "a" (mask), "a" (p)
|
||||
: "memory");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue