diff options
Diffstat (limited to 'include/linux/context_tracking.h')
-rw-r--r-- | include/linux/context_tracking.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h index 158158704c30..37b81bd51ec0 100644 --- a/include/linux/context_tracking.h +++ b/include/linux/context_tracking.h | |||
@@ -17,13 +17,13 @@ extern void __context_tracking_task_switch(struct task_struct *prev, | |||
17 | 17 | ||
18 | static inline void user_enter(void) | 18 | static inline void user_enter(void) |
19 | { | 19 | { |
20 | if (static_key_false(&context_tracking_enabled)) | 20 | if (context_tracking_is_enabled()) |
21 | context_tracking_user_enter(); | 21 | context_tracking_user_enter(); |
22 | 22 | ||
23 | } | 23 | } |
24 | static inline void user_exit(void) | 24 | static inline void user_exit(void) |
25 | { | 25 | { |
26 | if (static_key_false(&context_tracking_enabled)) | 26 | if (context_tracking_is_enabled()) |
27 | context_tracking_user_exit(); | 27 | context_tracking_user_exit(); |
28 | } | 28 | } |
29 | 29 | ||
@@ -31,7 +31,7 @@ static inline enum ctx_state exception_enter(void) | |||
31 | { | 31 | { |
32 | enum ctx_state prev_ctx; | 32 | enum ctx_state prev_ctx; |
33 | 33 | ||
34 | if (!static_key_false(&context_tracking_enabled)) | 34 | if (!context_tracking_is_enabled()) |
35 | return 0; | 35 | return 0; |
36 | 36 | ||
37 | prev_ctx = this_cpu_read(context_tracking.state); | 37 | prev_ctx = this_cpu_read(context_tracking.state); |
@@ -42,7 +42,7 @@ static inline enum ctx_state exception_enter(void) | |||
42 | 42 | ||
43 | static inline void exception_exit(enum ctx_state prev_ctx) | 43 | static inline void exception_exit(enum ctx_state prev_ctx) |
44 | { | 44 | { |
45 | if (static_key_false(&context_tracking_enabled)) { | 45 | if (context_tracking_is_enabled()) { |
46 | if (prev_ctx == IN_USER) | 46 | if (prev_ctx == IN_USER) |
47 | context_tracking_user_enter(); | 47 | context_tracking_user_enter(); |
48 | } | 48 | } |
@@ -51,7 +51,7 @@ static inline void exception_exit(enum ctx_state prev_ctx) | |||
51 | static inline void context_tracking_task_switch(struct task_struct *prev, | 51 | static inline void context_tracking_task_switch(struct task_struct *prev, |
52 | struct task_struct *next) | 52 | struct task_struct *next) |
53 | { | 53 | { |
54 | if (static_key_false(&context_tracking_enabled)) | 54 | if (context_tracking_is_enabled()) |
55 | __context_tracking_task_switch(prev, next); | 55 | __context_tracking_task_switch(prev, next); |
56 | } | 56 | } |
57 | #else | 57 | #else |