X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fjump_label.h;h=bf1eef337a074284904b61d970c0c72512baa620;hb=656d054e0a15ec327bd82801ccd58201e59f6896;hp=107751cc047be54758b29e61cefbaabf0c9ee595;hpb=5dee87215b2c539e7b82704d56f610a4e558b9cc;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index 107751c..bf1eef3 100644 --- a/include/linux/jump_label.h +++ b/include/linux/jump_label.h @@ -256,9 +256,9 @@ extern void static_key_disable_cpuslocked(struct static_key *key); #include #include -static inline int static_key_count(struct static_key *key) +static __always_inline int static_key_count(struct static_key *key) { - return atomic_read(&key->enabled); + return arch_atomic_read(&key->enabled); } static __always_inline void jump_label_init(void)