diff options
author | 2020-11-30 12:21:25 +0100 | |
---|---|---|
committer | 2022-12-15 10:37:27 -0800 | |
commit | b7301f20105a27112f7ca8040cfb0b0505a32fbd (patch) | |
tree | ad3f79ecb92e1d93caaef1cb81c238951ca06e30 /lib/pm-notifier-error-inject.c | |
parent | x86/mm/pae: Use WRITE_ONCE() (diff) | |
download | linux-rng-b7301f20105a27112f7ca8040cfb0b0505a32fbd.tar.xz linux-rng-b7301f20105a27112f7ca8040cfb0b0505a32fbd.zip |
x86/mm/pae: Be consistent with pXXp_get_and_clear()
Given that ptep_get_and_clear() uses cmpxchg8b, and that should be by
far the most common case, there's no point in having an optimized
variant for pmd/pud.
Introduce the pxx_xchg64() helper to implement the common logic once.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221022114425.103392961%40infradead.org
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions