summaryrefslogtreecommitdiff
path: root/arch/um/include/asm
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2025-08-10 13:51:27 +0800
committerJohannes Berg <johannes.berg@intel.com>2025-09-10 14:23:53 +0200
commita73a9aad8a81934ab50201ba23107fd321612caf (patch)
tree682736d226340b5002ff6bfa6ed4d0b0585a4396 /arch/um/include/asm
parente047f9af9d6948728614f7eea41ba53d5b767e9f (diff)
downloadlinux-a73a9aad8a81934ab50201ba23107fd321612caf.tar.gz
linux-a73a9aad8a81934ab50201ba23107fd321612caf.tar.bz2
linux-a73a9aad8a81934ab50201ba23107fd321612caf.zip
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 <tiwei.btw@antgroup.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um/include/asm')
-rw-r--r--arch/um/include/asm/mmu_context.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h
index 0bbb24868557..c727e56ba116 100644
--- a/arch/um/include/asm/mmu_context.h
+++ b/arch/um/include/asm/mmu_context.h
@@ -13,20 +13,9 @@
#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