History

arch: Remove cmpxchg_double

No moar users, remove the monster.

Peter Zijlstra committed 3 years ago

Commit febe9501 parent 6801be415 files · +5 −371Browse files

Showing the changes to scripts (1 of 15 files). Show all

Unified · Split

scripts/atomic/gen-atomic-instrumented.sh+4−11
@@ -84,7 +84,6 @@ gen_xchg() · 83 unmodified lines
8484 {
8585 local xchg="$1"; shift
8686 local order="$1"; shift
87− local mult="$1"; shift
8887
8988 kcsan_barrier=""
9089 if [ "${xchg%_local}" = "${xchg}" ]; then
@@ -104,8 +103,8 @@ cat <<EOF · 13 unmodified lines
104103 EOF
105104 [ -n "$kcsan_barrier" ] && printf "\t${kcsan_barrier}; \\\\\n"
106105 cat <<EOF
107− instrument_atomic_read_write(__ai_ptr, ${mult}sizeof(*__ai_ptr)); \\
108− instrument_read_write(__ai_oldp, ${mult}sizeof(*__ai_oldp)); \\
106+ instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \\
107+ instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \\
109108 arch_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\
110109 })
111110 EOF
@@ -168,22 +167,16 @@ done · 56 unmodified lines
168167
169168 for xchg in "xchg" "cmpxchg" "cmpxchg64" "cmpxchg128" "try_cmpxchg" "try_cmpxchg64" "try_cmpxchg128"; do
170169 for order in "" "_acquire" "_release" "_relaxed"; do
171− gen_xchg "${xchg}" "${order}" ""
170+ gen_xchg "${xchg}" "${order}"
172171 printf "\n"
173172 done
174173 done
175174
176175 for xchg in "cmpxchg_local" "cmpxchg64_local" "cmpxchg128_local" "sync_cmpxchg" "try_cmpxchg_local" "try_cmpxchg64_local" "try_cmpxchg128_local"; do
177− gen_xchg "${xchg}" "" ""
176+ gen_xchg "${xchg}" ""
178177 printf "\n"
179178 done
180179
181−gen_xchg "cmpxchg_double" "" "2 * "
182−
183−printf "\n\n"
184−
185−gen_xchg "cmpxchg_double_local" "" "2 * "
186−
187180 cat <<EOF
188181
189182 #endif /* _LINUX_ATOMIC_INSTRUMENTED_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t