Mark Rutland | ace9bad | 2018-09-04 11:48:25 +0100 | [diff] [blame] | 1 | cat <<EOF |
Marco Elver | 765dcd2 | 2019-11-26 15:04:05 +0100 | [diff] [blame] | 2 | static __always_inline ${ret} |
Mark Rutland | f3e615b | 2021-07-13 11:52:50 +0100 | [diff] [blame] | 3 | arch_${atomic}_${pfx}${name}${sfx}(${params}) |
Mark Rutland | ace9bad | 2018-09-04 11:48:25 +0100 | [diff] [blame] | 4 | { |
| 5 | ${ret} ret; |
| 6 | __atomic_pre_full_fence(); |
Mark Rutland | f3e615b | 2021-07-13 11:52:50 +0100 | [diff] [blame] | 7 | ret = arch_${atomic}_${pfx}${name}${sfx}_relaxed(${args}); |
Mark Rutland | ace9bad | 2018-09-04 11:48:25 +0100 | [diff] [blame] | 8 | __atomic_post_full_fence(); |
| 9 | return ret; |
| 10 | } |
| 11 | EOF |