History

Merge tag 'locking-core-2024-03-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking updates from Ingo Molnar: - Micro-optimize local_xchg() and the rtmutex code on x86 - Fix percpu-rwsem contention tracepoints - Simplify debugging Kconfig dependencies - Update/clarify the documentation of atomic primitives - Misc cleanups * tag 'locking-core-2024-03-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/rtmutex: Use try_cmpxchg_relaxed() in mark_rt_mutex_waiters() locking/x86: Implement local_xchg() using CMPXCHG without the LOCK prefix locking/percpu-rwsem: Trigger contention tracepoints only if contended locking/rwsem: Make DEBUG_RWSEMS and PREEMPT_RT mutually exclusive locking/rwsem: Clarify that RWSEM_READER_OWNED is just a hint locking/mutex: Simplify <linux/mutex.h> locking/qspinlock: Fix 'wait_early' set but not used warning locking/atomic: scripts: Clarify ordering of conditional atomics

Linus Torvalds committed 2 years ago

Commit a5b1a012 parents b040240 ce3576e17 files · +154 −49Browse files

Showing the changes to scripts (7 of 17 files). Show all

Unified · Split

7 files
  1. scripts/atomic/kerneldoc/add_unless +1 −0
  2. scripts/atomic/kerneldoc/cmpxchg +1 −0
  3. scripts/atomic/kerneldoc/dec_if_positive +1 −0
  4. scripts/atomic/kerneldoc/dec_unless_positive +1 −0
  5. scripts/atomic/kerneldoc/inc_not_zero +1 −0
  6. scripts/atomic/kerneldoc/inc_unless_negative +1 −0
  7. scripts/atomic/kerneldoc/try_cmpxchg +2 −1
scripts/atomic/kerneldoc/add_unless+1−0
@@ -10,6 +10,7 @@ cat <<EOF · 9 unmodified lines
1010 * @u: ${int} value to compare with
1111 *
1212 * If (@v != @u), atomically updates @v to (@v + @a) with ${desc_order} ordering.
13+ * Otherwise, @v is not modified and relaxed ordering is provided.
1314 *
1415 * ${desc_noinstr}
1516 *
scripts/atomic/kerneldoc/cmpxchg+1−0
@@ -6,6 +6,7 @@ cat <<EOF · 5 unmodified lines
66 * @new: ${int} value to assign
77 *
88 * If (@v == @old), atomically updates @v to @new with ${desc_order} ordering.
9+ * Otherwise, @v is not modified and relaxed ordering is provided.
910 *
1011 * ${desc_noinstr}
1112 *
scripts/atomic/kerneldoc/dec_if_positive+1−0
@@ -4,6 +4,7 @@ cat <<EOF · 3 unmodified lines
44 * @v: pointer to ${atomic}_t
55 *
66 * If (@v > 0), atomically updates @v to (@v - 1) with ${desc_order} ordering.
7+ * Otherwise, @v is not modified and relaxed ordering is provided.
78 *
89 * ${desc_noinstr}
910 *
scripts/atomic/kerneldoc/dec_unless_positive+1−0
@@ -4,6 +4,7 @@ cat <<EOF · 3 unmodified lines
44 * @v: pointer to ${atomic}_t
55 *
66 * If (@v <= 0), atomically updates @v to (@v - 1) with ${desc_order} ordering.
7+ * Otherwise, @v is not modified and relaxed ordering is provided.
78 *
89 * ${desc_noinstr}
910 *
scripts/atomic/kerneldoc/inc_not_zero+1−0
@@ -4,6 +4,7 @@ cat <<EOF · 3 unmodified lines
44 * @v: pointer to ${atomic}_t
55 *
66 * If (@v != 0), atomically updates @v to (@v + 1) with ${desc_order} ordering.
7+ * Otherwise, @v is not modified and relaxed ordering is provided.
78 *
89 * ${desc_noinstr}
910 *
scripts/atomic/kerneldoc/inc_unless_negative+1−0
@@ -4,6 +4,7 @@ cat <<EOF · 3 unmodified lines
44 * @v: pointer to ${atomic}_t
55 *
66 * If (@v >= 0), atomically updates @v to (@v + 1) with ${desc_order} ordering.
7+ * Otherwise, @v is not modified and relaxed ordering is provided.
78 *
89 * ${desc_noinstr}
910 *
scripts/atomic/kerneldoc/try_cmpxchg+2−1
@@ -6,7 +6,8 @@ cat <<EOF · 5 unmodified lines
66 * @new: ${int} value to assign
77 *
88 * If (@v == @old), atomically updates @v to @new with ${desc_order} ordering.
9− * Otherwise, updates @old to the current value of @v.
9+ * Otherwise, @v is not modified, @old is updated to the current value of @v,
10+ * and relaxed ordering is provided.
1011 *
1112 * ${desc_noinstr}
1213 *

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