Skip to content

Commit 76b278e

Browse files
um: Use asm-generic/switch_to.h
Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent a3a85a7 commit 76b278e

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎arch/um/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
generic-y += bug.h cputime.h device.h emergency-restart.h futex.h hardirq.h
22
generic-y += hw_irq.h irq_regs.h kdebug.h percpu.h sections.h topology.h xor.h
33
generic-y += ftrace.h pci.h io.h param.h delay.h mutex.h current.h exec.h
4+
generic-y += switch_to.h

‎arch/um/kernel/process.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,8 @@ static inline void set_current(struct task_struct *task)
8888

8989
extern void arch_switch_to(struct task_struct *to);
9090

91-
void *_switch_to(void *prev, void *next, void *last)
91+
void *__switch_to(struct task_struct *from, struct task_struct *to)
9292
{
93-
struct task_struct *from = prev;
94-
struct task_struct *to = next;
95-
9693
to->thread.prev_sched = from;
9794
set_current(to);
9895

@@ -111,7 +108,6 @@ void *_switch_to(void *prev, void *next, void *last)
111108
} while (current->thread.saved_task);
112109

113110
return current->thread.prev_sched;
114-
115111
}
116112

117113
void interrupt_end(void)

‎arch/x86/um/asm/switch_to.h‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)