Commit 5e02c74
committed
s390/cpum_sf: use READ_ONCE_ALIGNED_128() instead of 128-bit cmpxchg
Use READ_ONCE_ALIGNED_128() to read the previous value in front of a
128-bit cmpxchg loop, instead of (mis-)using a 128-bit cmpxchg operation to
do the same.
This makes the code more readable and is faster.
Link: https://lore.kernel.org/r/20230224100237.3247871-3-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent 434b266 commit 5e02c74
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | | - | |
1359 | | - | |
| 1358 | + | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | 1361 | | |
| |||
1558 | 1557 | | |
1559 | 1558 | | |
1560 | 1559 | | |
1561 | | - | |
1562 | | - | |
| 1560 | + | |
1563 | 1561 | | |
1564 | 1562 | | |
1565 | 1563 | | |
| |||
1637 | 1635 | | |
1638 | 1636 | | |
1639 | 1637 | | |
1640 | | - | |
1641 | | - | |
| 1638 | + | |
1642 | 1639 | | |
1643 | 1640 | | |
1644 | 1641 | | |
| |||
0 commit comments