History

Merge branch 'locking/rcuref' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pulling rcurefs from Peter for tglx's work.

Jakub Kicinski committed 3 years ago

Commit b133fff2 parents 163c2c7 ee1ee6d9 files · +752 −19Browse files

Showing the changes to scripts (2 of 9 files). Show all

Unified · Split

2 files
  1. scripts/atomic/atomics.tbl +1 −1
  2. scripts/atomic/fallbacks/add_negative +5 −6
scripts/atomic/atomics.tbl+1−1
@@ -33,7 +33,7 @@ try_cmpxchg B v p:old i:new · 32 unmodified lines
3333 sub_and_test b i v
3434 dec_and_test b v
3535 inc_and_test b v
36−add_negative b i v
36+add_negative B i v
3737 add_unless fb v i:a i:u
3838 inc_not_zero b v
3939 inc_unless_negative b v
scripts/atomic/fallbacks/add_negative+5−6
@@ -1,16 +1,15 @@
11 cat <<EOF
22 /**
3− * arch_${atomic}_add_negative - add and test if negative
3+ * arch_${atomic}_add_negative${order} - Add and test if negative
44 * @i: integer value to add
55 * @v: pointer of type ${atomic}_t
66 *
7− * Atomically adds @i to @v and returns true
8− * if the result is negative, or false when
9− * result is greater than or equal to zero.
7+ * Atomically adds @i to @v and returns true if the result is negative,
8+ * or false when the result is greater than or equal to zero.
109 */
1110 static __always_inline bool
12−arch_${atomic}_add_negative(${int} i, ${atomic}_t *v)
11+arch_${atomic}_add_negative${order}(${int} i, ${atomic}_t *v)
1312 {
14− return arch_${atomic}_add_return(i, v) < 0;
13+ return arch_${atomic}_add_return${order}(i, v) < 0;
1514 }
1615 EOF

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