diff options
Diffstat (limited to 'include/linux/context_tracking.h')
| -rw-r--r-- | include/linux/context_tracking.h | 10 | 
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h index 2821838256b4..b96bd299966f 100644 --- a/include/linux/context_tracking.h +++ b/include/linux/context_tracking.h  | |||
| @@ -14,8 +14,6 @@ extern void context_tracking_enter(enum ctx_state state); | |||
| 14 | extern void context_tracking_exit(enum ctx_state state); | 14 | extern void context_tracking_exit(enum ctx_state state); | 
| 15 | extern void context_tracking_user_enter(void); | 15 | extern void context_tracking_user_enter(void); | 
| 16 | extern void context_tracking_user_exit(void); | 16 | extern void context_tracking_user_exit(void); | 
| 17 | extern void __context_tracking_task_switch(struct task_struct *prev, | ||
| 18 | struct task_struct *next); | ||
| 19 | 17 | ||
| 20 | static inline void user_enter(void) | 18 | static inline void user_enter(void) | 
| 21 | { | 19 | { | 
| @@ -51,19 +49,11 @@ static inline void exception_exit(enum ctx_state prev_ctx) | |||
| 51 | } | 49 | } | 
| 52 | } | 50 | } | 
| 53 | 51 | ||
| 54 | static inline void context_tracking_task_switch(struct task_struct *prev, | ||
| 55 | struct task_struct *next) | ||
| 56 | { | ||
| 57 | if (context_tracking_is_enabled()) | ||
| 58 | __context_tracking_task_switch(prev, next); | ||
| 59 | } | ||
| 60 | #else | 52 | #else | 
| 61 | static inline void user_enter(void) { } | 53 | static inline void user_enter(void) { } | 
| 62 | static inline void user_exit(void) { } | 54 | static inline void user_exit(void) { } | 
| 63 | static inline enum ctx_state exception_enter(void) { return 0; } | 55 | static inline enum ctx_state exception_enter(void) { return 0; } | 
| 64 | static inline void exception_exit(enum ctx_state prev_ctx) { } | 56 | static inline void exception_exit(enum ctx_state prev_ctx) { } | 
| 65 | static inline void context_tracking_task_switch(struct task_struct *prev, | ||
| 66 | struct task_struct *next) { } | ||
| 67 | #endif /* !CONFIG_CONTEXT_TRACKING */ | 57 | #endif /* !CONFIG_CONTEXT_TRACKING */ | 
| 68 | 58 | ||
| 69 | 59 | ||
