mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 07:21:27 +00:00
[PATCH] uml: Eliminate unusable function
Eliminate the non-inline version of switch_mm, which can't be used, considering the inline version in asm/mmu_context.h Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
804c2415c9
commit
ccfcd37cb6
1 changed files with 0 additions and 10 deletions
|
@ -115,16 +115,6 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
|
||||||
return(pid);
|
return(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
|
||||||
struct task_struct *tsk)
|
|
||||||
{
|
|
||||||
int cpu = smp_processor_id();
|
|
||||||
|
|
||||||
if (prev != next)
|
|
||||||
cpu_clear(cpu, prev->cpu_vm_mask);
|
|
||||||
cpu_set(cpu, next->cpu_vm_mask);
|
|
||||||
}
|
|
||||||
|
|
||||||
void set_current(void *t)
|
void set_current(void *t)
|
||||||
{
|
{
|
||||||
struct task_struct *task = t;
|
struct task_struct *task = t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue