]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
um: Stop tracking virtual CPUs via mm_cpumask()
authorTiwei Bie <tiwei.btw@antgroup.com>
Sun, 10 Aug 2025 05:51:27 +0000 (13:51 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Sep 2025 12:23:53 +0000 (14:23 +0200)
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 <tiwei.btw@antgroup.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/asm/mmu_context.h

index 0bbb24868557160bede936603a884f2961507543..c727e56ba116ce47cde3a36223d3a7f102b54de6 100644 (file)
 #include <asm/mm_hooks.h>
 #include <asm/mmu.h>
 
-#define activate_mm activate_mm
-static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
-{
-}
-
 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, 
                             struct task_struct *tsk)
 {
-       unsigned cpu = smp_processor_id();
-
-       if (prev != next) {
-               cpumask_clear_cpu(cpu, mm_cpumask(prev));
-               cpumask_set_cpu(cpu, mm_cpumask(next));
-       }
 }
 
 #define init_new_context init_new_context