mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
Exceptions handling on context tracking should share common treatment: on entry we exit user mode if the exception triggered in that context. Then on exception exit we return to that previous context. Generalize this to avoid duplication across archs. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Li Zhong <[email protected]> Cc: Kevin Hilman <[email protected]> Cc: Mats Liljegren <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Paul E. McKenney <[email protected]>
11 lines
204 B
C
11 lines
204 B
C
#ifndef _ASM_X86_CONTEXT_TRACKING_H
|
|
#define _ASM_X86_CONTEXT_TRACKING_H
|
|
|
|
#ifdef CONFIG_CONTEXT_TRACKING
|
|
# define SCHEDULE_USER call schedule_user
|
|
#else
|
|
# define SCHEDULE_USER call schedule
|
|
#endif
|
|
|
|
#endif
|