diff options
author | Vineet Gupta <[email protected]> | 2015-08-06 17:03:17 +0530 |
---|---|---|
committer | Vineet Gupta <[email protected]> | 2015-08-20 18:16:00 +0530 |
commit | 882a95ae0a4f8fc303257acf5c6ff305df34d04b (patch) | |
tree | 2de6c5e17b3a7e0b5e06afe4246b81ef27e521b7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ed574e2bbd81ec20134059fb5e17acbc76387270 (diff) |
ARC: make futex_atomic_cmpxchg_inatomic() return bimodal
Callers of cmpxchg_futex_value_locked() in futex code expect bimodal
return value:
!0 (essentially -EFAULT as failure)
0 (success)
Before this patch, the success return value was old value of futex,
which could very well be non zero, causing caller to possibly take the
failure path erroneously.
Fix that by returning 0 for success
(This fix was done back in 2011 for all upstream arches, which ARC
obviously missed)
Cc: Peter Zijlstra (Intel) <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Signed-off-by: Vineet Gupta <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions