diff --git a/include/linux/sched.h b/include/linux/sched.h
index 29c7ccd5ae42e810fec2a5f4c3b2ca77188db6f5..b85b26d9ccefeda08bb8be7d5d2f54f89d66741b 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1589,7 +1589,7 @@ extern struct pid *cad_pid;
 #define tsk_used_math(p)			((p)->flags & PF_USED_MATH)
 #define used_math()				tsk_used_math(current)
 
-static inline bool is_percpu_thread(void)
+static __always_inline bool is_percpu_thread(void)
 {
 #ifdef CONFIG_SMP
 	return (current->flags & PF_NO_SETAFFINITY) &&