Home
last modified time | relevance | path

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

/Linux-v4.19/include/linux/
Dcontext_tracking.h50 enum ctx_state prev_ctx; in exception_enter() local
55 prev_ctx = this_cpu_read(context_tracking.state); in exception_enter()
56 if (prev_ctx != CONTEXT_KERNEL) in exception_enter()
57 context_tracking_exit(prev_ctx); in exception_enter()
59 return prev_ctx; in exception_enter()
62 static inline void exception_exit(enum ctx_state prev_ctx) in exception_exit() argument
65 if (prev_ctx != CONTEXT_KERNEL) in exception_exit()
66 context_tracking_enter(prev_ctx); in exception_exit()
89 static inline void exception_exit(enum ctx_state prev_ctx) { } in exception_exit() argument
/Linux-v4.19/kernel/sched/
Dcore.c3644 enum ctx_state prev_ctx; in preempt_schedule_notrace() local
3670 prev_ctx = exception_enter(); in preempt_schedule_notrace()
3672 exception_exit(prev_ctx); in preempt_schedule_notrace()