diff options
| author | 2022-01-04 21:48:11 +0000 | |
|---|---|---|
| committer | 2022-01-07 01:29:21 +0100 | |
| commit | 72c3dd8207de4178ae50553666129af7231f86e7 (patch) | |
| tree | 023307e7d55f51203c55ced80fc5006653a22086 /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | parisc: Rewrite light-weight syscall and futex code (diff) | |
| download | linux-dev-72c3dd8207de4178ae50553666129af7231f86e7.tar.xz linux-dev-72c3dd8207de4178ae50553666129af7231f86e7.zip | |
parisc: Add lws_atomic_xchg and lws_atomic_store syscalls
This patch adds two new LWS routines - lws_atomic_xchg and lws_atomic_store.
These are simpler than the CAS routines. Currently, we use the CAS
routines for atomic stores. This is inefficient since it requires
both winning the spinlock and a successful CAS operation.
Change has been tested on c8000 and rp3440.
In v2, I moved the code to disble/enable page faults inside the spinlocks.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
