Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/kernel/sched/
Dcore.c4272 enum ctx_state prev_ctx; in preempt_schedule_notrace() local
4298 prev_ctx = exception_enter(); in preempt_schedule_notrace()
4300 exception_exit(prev_ctx); in preempt_schedule_notrace()