diff options
| -rw-r--r-- | arch/um/include/asm/Kbuild | 1 | ||||
| -rw-r--r-- | arch/um/kernel/process.c | 6 | ||||
| -rw-r--r-- | arch/x86/um/asm/switch_to.h | 7 |
3 files changed, 2 insertions, 12 deletions
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild index bb5d6e68829..fff24352255 100644 --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h | 1 | generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h |
| 2 | generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h | 2 | generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h |
| 3 | generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h | 3 | generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h |
| 4 | generic-y += switch_to.h | ||
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index f386d04a84a..2b73dedb44c 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
| @@ -88,11 +88,8 @@ static inline void set_current(struct task_struct *task) | |||
| 88 | 88 | ||
| 89 | extern void arch_switch_to(struct task_struct *to); | 89 | extern void arch_switch_to(struct task_struct *to); |
| 90 | 90 | ||
| 91 | void *_switch_to(void *prev, void *next, void *last) | 91 | void *__switch_to(struct task_struct *from, struct task_struct *to) |
| 92 | { | 92 | { |
| 93 | struct task_struct *from = prev; | ||
| 94 | struct task_struct *to = next; | ||
| 95 | |||
| 96 | to->thread.prev_sched = from; | 93 | to->thread.prev_sched = from; |
| 97 | set_current(to); | 94 | set_current(to); |
| 98 | 95 | ||
| @@ -111,7 +108,6 @@ void *_switch_to(void *prev, void *next, void *last) | |||
| 111 | } while (current->thread.saved_task); | 108 | } while (current->thread.saved_task); |
| 112 | 109 | ||
| 113 | return current->thread.prev_sched; | 110 | return current->thread.prev_sched; |
| 114 | |||
| 115 | } | 111 | } |
| 116 | 112 | ||
| 117 | void interrupt_end(void) | 113 | void interrupt_end(void) |
diff --git a/arch/x86/um/asm/switch_to.h b/arch/x86/um/asm/switch_to.h deleted file mode 100644 index cf97d20da61..00000000000 --- a/arch/x86/um/asm/switch_to.h +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #ifndef _ASM_UM_SWITCH_TO_H_ | ||
| 2 | #define _ASM_UM_SWITCH_TO_H_ | ||
| 3 | |||
| 4 | extern void *_switch_to(void *prev, void *next, void *last); | ||
| 5 | #define switch_to(prev, next, last) prev = _switch_to(prev, next, last) | ||
| 6 | |||
| 7 | #endif | ||
