diff options
author | Richard Weinberger <richard@nod.at> | 2012-03-29 19:10:42 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2012-04-10 00:13:45 +0200 |
commit | 76b278edd99fb55525fcf2706095e388bd3d122c (patch) | |
tree | 6384a25403926b498c710c75202591ca1dec7d88 /arch/um | |
parent | a3a85a763c399c0bf483a30d82d2d613e6f94cd3 (diff) | |
download | op-kernel-dev-76b278edd99fb55525fcf2706095e388bd3d122c.zip op-kernel-dev-76b278edd99fb55525fcf2706095e388bd3d122c.tar.gz |
um: Use asm-generic/switch_to.h
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/um/kernel/process.c | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild index bb5d6e6..fff2435 100644 --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild @@ -1,3 +1,4 @@ generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h +generic-y += switch_to.h diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index f386d04..2b73ded 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) extern void arch_switch_to(struct task_struct *to); -void *_switch_to(void *prev, void *next, void *last) +void *__switch_to(struct task_struct *from, struct task_struct *to) { - struct task_struct *from = prev; - struct task_struct *to = next; - to->thread.prev_sched = from; set_current(to); @@ -111,7 +108,6 @@ void *_switch_to(void *prev, void *next, void *last) } while (current->thread.saved_task); return current->thread.prev_sched; - } void interrupt_end(void) |