diff options
author | Mark Rutland <mark.rutland@arm.com> | 2023-06-05 08:01:15 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-06-05 09:57:20 +0200 |
commit | 0f613bfa8268a89be25f2b6b58fc6fe8ccd9a2ba (patch) | |
tree | bf4809e894a0cdd521772a1d409bf1653563685b /include/linux/jump_label.h | |
parent | c9268ac615f9f6dded7801df5993374598934377 (diff) | |
download | linux-stable-0f613bfa8268a89be25f2b6b58fc6fe8ccd9a2ba.tar.gz linux-stable-0f613bfa8268a89be25f2b6b58fc6fe8ccd9a2ba.tar.bz2 linux-stable-0f613bfa8268a89be25f2b6b58fc6fe8ccd9a2ba.zip |
locking/atomic: treewide: use raw_atomic*_<op>()
Now that we have raw_atomic*_<op>() definitions, there's no need to use
arch_atomic*_<op>() definitions outside of the low-level atomic
definitions.
Move treewide users of arch_atomic*_<op>() over to the equivalent
raw_atomic*_<op>().
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230605070124.3741859-19-mark.rutland@arm.com
Diffstat (limited to 'include/linux/jump_label.h')
-rw-r--r-- | include/linux/jump_label.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index 4e968ebadce6..f0a949b7c973 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -257,7 +257,7 @@ extern enum jump_label_type jump_label_init_type(struct jump_entry *entry); static __always_inline int static_key_count(struct static_key *key) { - return arch_atomic_read(&key->enabled); + return raw_atomic_read(&key->enabled); } static __always_inline void jump_label_init(void) |