arch: xtensa: Remove ISYNC from xtensa_compareset()
Summary: - According to the Xtensa ISA document, this ISYNC instruction between WSR SCOMPARE1 and S32C1I is unnecessary Impact: - SMP only Testing: - Tested with esp32-devkitc:wapi_smp Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
2d016f8d21
commit
83ac6cd399
@ -57,7 +57,6 @@ static inline uint32_t xtensa_compareset(FAR volatile uint32_t *addr,
|
||||
__asm__ __volatile__
|
||||
(
|
||||
"WSR %2, SCOMPARE1\n" /* Initialize SCOMPARE1 */
|
||||
"ISYNC\n" /* Wait sync */
|
||||
"S32C1I %0, %1, 0\n" /* Store id into the lock, if the lock is the
|
||||
* same as comparel. Otherwise, no write-access */
|
||||
: "=r"(set) : "r"(addr), "r"(compare), "0"(set)
|
||||
|
Loading…
Reference in New Issue
Block a user