summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-11-07 19:36:46 +0100
committerVineet Gupta <vgupta@synopsys.com>2016-11-07 20:01:12 +0100
commite6e335bf3a400bc3b5a65322a891318a25749769 (patch)
tree64f78c4585cf70b210ad004725131d5c997251a1 /scripts
parentarc: Implement arch-specific dma_map_ops.mmap (diff)
downloadlinux-e6e335bf3a400bc3b5a65322a891318a25749769.tar.xz
linux-e6e335bf3a400bc3b5a65322a891318a25749769.zip
ARC: change return value of userspace cmpxchg assist syscall
The original syscall only used to return errno to indicate if cmpxchg succeeded. It was not returning the "previous" value which typical cmpxchg callers are interested in to build their slowpaths or retry loops. Given user preemption in syscall return path etc, it is not wise to check this in userspace afterwards, but should be what kernel actually observed in the syscall. So change the syscall interface to always return the previous value and additionally set Z flag to indicate whether operation succeeded or not (just like ARM implementation when they used to have this syscall) The flag approach avoids having to put_user errno which is nice given the use case for this syscall cares mostly about the "previous" value. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions