diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2016-05-31 14:01:33 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-06-02 08:29:22 +0300 |
commit | 42316a201a60be38b07db1ebc3a1633107ed7209 (patch) | |
tree | abca1d4d5af079242c755149bc1411d3971f926c /arch/arc/include/asm/atomic.h | |
parent | d140b9bfcad9e53f1da67ad09dd5092b44d55c7b (diff) | |
download | linux-42316a201a60be38b07db1ebc3a1633107ed7209.tar.xz |
Revert "ARCv2: spinlock/rwlock/atomics: reduce 1 instruction in exponential backoff"
This reverts commit 10971638701dedadb58c88ce4d31c9375b224ed6.
The issue was fixed in hardware in HS2.1C release and there are no known
external users of affected RTL - so revert thw whole delayed retry
series !
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/atomic.h')
-rw-r--r-- | arch/arc/include/asm/atomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h index 5f3dcbbc0cc9..75c8226317f4 100644 --- a/arch/arc/include/asm/atomic.h +++ b/arch/arc/include/asm/atomic.h @@ -36,7 +36,8 @@ " mov %[tmp], %[delay] \n" /* tmp = delay */ \ "2: brne.d %[tmp], 0, 2b \n" /* while (tmp != 0) */ \ " sub %[tmp], %[tmp], 1 \n" /* tmp-- */ \ - " rol %[delay], %[delay] \n" /* delay *= 2 */ \ + " asl.f %[delay], %[delay], 1 \n" /* delay *= 2 */ \ + " mov.z %[delay], 1 \n" /* handle overflow */ \ " b 1b \n" /* start over */ \ "4: ; --- success --- \n" \ |