Skip to content

Commit a73a9aa

Browse files
btw616jmberg-intel
authored andcommitted
um: Stop tracking virtual CPUs via mm_cpumask()
In UML, each user address space is represented as a separate stub process on the host. Therefore, user address spaces do not require TLB management on UML virtual CPUs, and it's unnecessary to track which virtual CPUs they have executed on. Signed-off-by: Tiwei Bie <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent e047f9a commit a73a9aa

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/um/include/asm/mmu_context.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,9 @@
1313
#include <asm/mm_hooks.h>
1414
#include <asm/mmu.h>
1515

16-
#define activate_mm activate_mm
17-
static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
18-
{
19-
}
20-
2116
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
2217
struct task_struct *tsk)
2318
{
24-
unsigned cpu = smp_processor_id();
25-
26-
if (prev != next) {
27-
cpumask_clear_cpu(cpu, mm_cpumask(prev));
28-
cpumask_set_cpu(cpu, mm_cpumask(next));
29-
}
3019
}
3120

3221
#define init_new_context init_new_context

0 commit comments

Comments
 (0)