mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
19 lines
526 B
C
19 lines
526 B
C
|
#ifndef _LINUX_CONTEXT_TRACKING_H
|
||
|
#define _LINUX_CONTEXT_TRACKING_H
|
||
|
|
||
|
#ifdef CONFIG_CONTEXT_TRACKING
|
||
|
#include <linux/sched.h>
|
||
|
|
||
|
extern void user_enter(void);
|
||
|
extern void user_exit(void);
|
||
|
extern void context_tracking_task_switch(struct task_struct *prev,
|
||
|
struct task_struct *next);
|
||
|
#else
|
||
|
static inline void user_enter(void) { }
|
||
|
static inline void user_exit(void) { }
|
||
|
static inline void context_tracking_task_switch(struct task_struct *prev,
|
||
|
struct task_struct *next) { }
|
||
|
#endif /* !CONFIG_CONTEXT_TRACKING */
|
||
|
|
||
|
#endif
|