Skip to content

Commit ccfcd37

Browse files
cfd-36Linus Torvalds
authored andcommitted
[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>
1 parent 804c241 commit ccfcd37

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎arch/um/kernel/process_kern.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
115115
return(pid);
116116
}
117117

118-
void switch_mm(struct mm_struct *prev, struct mm_struct *next,
119-
struct task_struct *tsk)
120-
{
121-
int cpu = smp_processor_id();
122-
123-
if (prev != next)
124-
cpu_clear(cpu, prev->cpu_vm_mask);
125-
cpu_set(cpu, next->cpu_vm_mask);
126-
}
127-
128118
void set_current(void *t)
129119
{
130120
struct task_struct *task = t;

0 commit comments

Comments
 (0)