Home
last modified time | relevance | path

Searched refs:prev_ctx (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/include/linux/
Dcontext_tracking.h34 enum ctx_state prev_ctx; in exception_enter() local
39 prev_ctx = this_cpu_read(context_tracking.state); in exception_enter()
40 if (prev_ctx != CONTEXT_KERNEL) in exception_enter()
41 context_tracking_exit(prev_ctx); in exception_enter()
43 return prev_ctx; in exception_enter()
46 static inline void exception_exit(enum ctx_state prev_ctx) in exception_exit() argument
49 if (prev_ctx != CONTEXT_KERNEL) in exception_exit()
50 context_tracking_enter(prev_ctx); in exception_exit()
64 static inline void exception_exit(enum ctx_state prev_ctx) { } in exception_exit() argument
/linux-4.1.27/kernel/sched/
Dcore.c2921 enum ctx_state prev_ctx; in preempt_schedule_context() local
2933 prev_ctx = exception_enter(); in preempt_schedule_context()
2935 exception_exit(prev_ctx); in preempt_schedule_context()