diff options
| -rw-r--r-- | arch/x86/include/asm/switch_to.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h index 8c6bd6863db9..1008d4622709 100644 --- a/arch/x86/include/asm/switch_to.h +++ b/arch/x86/include/asm/switch_to.h | |||
| @@ -16,8 +16,7 @@ void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p, | |||
| 16 | struct tss_struct *tss); | 16 | struct tss_struct *tss); |
| 17 | 17 | ||
| 18 | /* This runs runs on the previous thread's stack. */ | 18 | /* This runs runs on the previous thread's stack. */ |
| 19 | static inline void prepare_switch_to(struct task_struct *prev, | 19 | static inline void prepare_switch_to(struct task_struct *next) |
| 20 | struct task_struct *next) | ||
| 21 | { | 20 | { |
| 22 | #ifdef CONFIG_VMAP_STACK | 21 | #ifdef CONFIG_VMAP_STACK |
| 23 | /* | 22 | /* |
| @@ -70,7 +69,7 @@ struct fork_frame { | |||
| 70 | 69 | ||
| 71 | #define switch_to(prev, next, last) \ | 70 | #define switch_to(prev, next, last) \ |
| 72 | do { \ | 71 | do { \ |
| 73 | prepare_switch_to(prev, next); \ | 72 | prepare_switch_to(next); \ |
| 74 | \ | 73 | \ |
| 75 | ((last) = __switch_to_asm((prev), (next))); \ | 74 | ((last) = __switch_to_asm((prev), (next))); \ |
| 76 | } while (0) | 75 | } while (0) |
