From 5d1646d90e1f2cceb9f0828f4b28318cd0ec7744 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:05:51 +0200 Subject: Adding upstream version 5.10.209. Signed-off-by: Daniel Baumann --- scripts/atomic/fallbacks/acquire | 9 +++++++++ scripts/atomic/fallbacks/add_negative | 16 ++++++++++++++++ scripts/atomic/fallbacks/add_unless | 16 ++++++++++++++++ scripts/atomic/fallbacks/andnot | 7 +++++++ scripts/atomic/fallbacks/dec | 7 +++++++ scripts/atomic/fallbacks/dec_and_test | 15 +++++++++++++++ scripts/atomic/fallbacks/dec_if_positive | 15 +++++++++++++++ scripts/atomic/fallbacks/dec_unless_positive | 14 ++++++++++++++ scripts/atomic/fallbacks/fence | 11 +++++++++++ scripts/atomic/fallbacks/fetch_add_unless | 23 +++++++++++++++++++++++ scripts/atomic/fallbacks/inc | 7 +++++++ scripts/atomic/fallbacks/inc_and_test | 15 +++++++++++++++ scripts/atomic/fallbacks/inc_not_zero | 14 ++++++++++++++ scripts/atomic/fallbacks/inc_unless_negative | 14 ++++++++++++++ scripts/atomic/fallbacks/read_acquire | 7 +++++++ scripts/atomic/fallbacks/release | 8 ++++++++ scripts/atomic/fallbacks/set_release | 7 +++++++ scripts/atomic/fallbacks/sub_and_test | 16 ++++++++++++++++ scripts/atomic/fallbacks/try_cmpxchg | 11 +++++++++++ 19 files changed, 232 insertions(+) create mode 100755 scripts/atomic/fallbacks/acquire create mode 100755 scripts/atomic/fallbacks/add_negative create mode 100755 scripts/atomic/fallbacks/add_unless create mode 100755 scripts/atomic/fallbacks/andnot create mode 100755 scripts/atomic/fallbacks/dec create mode 100755 scripts/atomic/fallbacks/dec_and_test create mode 100755 scripts/atomic/fallbacks/dec_if_positive create mode 100755 scripts/atomic/fallbacks/dec_unless_positive create mode 100755 scripts/atomic/fallbacks/fence create mode 100755 scripts/atomic/fallbacks/fetch_add_unless create mode 100755 scripts/atomic/fallbacks/inc create mode 100755 scripts/atomic/fallbacks/inc_and_test create mode 100755 scripts/atomic/fallbacks/inc_not_zero create mode 100755 scripts/atomic/fallbacks/inc_unless_negative create mode 100755 scripts/atomic/fallbacks/read_acquire create mode 100755 scripts/atomic/fallbacks/release create mode 100755 scripts/atomic/fallbacks/set_release create mode 100755 scripts/atomic/fallbacks/sub_and_test create mode 100755 scripts/atomic/fallbacks/try_cmpxchg (limited to 'scripts/atomic/fallbacks') diff --git a/scripts/atomic/fallbacks/acquire b/scripts/atomic/fallbacks/acquire new file mode 100755 index 000000000..59c00529d --- /dev/null +++ b/scripts/atomic/fallbacks/acquire @@ -0,0 +1,9 @@ +cat < 0)) + return false; + } while (!${arch}${atomic}_try_cmpxchg(v, &c, c - 1)); + + return true; +} +EOF diff --git a/scripts/atomic/fallbacks/fence b/scripts/atomic/fallbacks/fence new file mode 100755 index 000000000..3764fc8ce --- /dev/null +++ b/scripts/atomic/fallbacks/fence @@ -0,0 +1,11 @@ +cat <counter); +} +EOF diff --git a/scripts/atomic/fallbacks/release b/scripts/atomic/fallbacks/release new file mode 100755 index 000000000..f8906d537 --- /dev/null +++ b/scripts/atomic/fallbacks/release @@ -0,0 +1,8 @@ +cat <counter, i); +} +EOF diff --git a/scripts/atomic/fallbacks/sub_and_test b/scripts/atomic/fallbacks/sub_and_test new file mode 100755 index 000000000..c580f4c21 --- /dev/null +++ b/scripts/atomic/fallbacks/sub_and_test @@ -0,0 +1,16 @@ +cat <