Searched refs:active_mm (Results 1 - 129 of 129) sorted by relevance

/linux-4.4.14/mm/
H A Dmmu_context.c22 struct mm_struct *active_mm; use_mm() local
26 active_mm = tsk->active_mm; use_mm()
27 if (active_mm != mm) { use_mm()
29 tsk->active_mm = mm; use_mm()
32 switch_mm(active_mm, mm, tsk); use_mm()
38 if (active_mm != mm) use_mm()
39 mmdrop(active_mm); use_mm()
58 /* active_mm is still 'mm' */ unuse_mm()
/linux-4.4.14/arch/powerpc/kernel/
H A Dswsusp.c36 switch_mmu_context(current->active_mm, current->active_mm); restore_processor_state()
H A Dsmp.c684 current->active_mm = &init_mm; start_secondary()
/linux-4.4.14/arch/sparc/include/asm/
H A Dmmu_context_32.h31 #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL)
H A Dswitch_to_32.h60 cpumask_set_cpu(smp_processor_id(), mm_cpumask(next->active_mm)); \
H A Dmmu_context_64.h136 static inline void activate_mm(struct mm_struct *active_mm, struct mm_struct *mm) activate_mm() argument
/linux-4.4.14/arch/sparc/power/
H A Dhibernate.c36 struct mm_struct *mm = current->active_mm; restore_processor_state()
/linux-4.4.14/arch/avr32/kernel/
H A Dasm-offsets.c21 OFFSET(TSK_active_mm, task_struct, active_mm); foo()
H A Dentry-avr32b.S381 /* PTBR mirrors current_thread_info()->task->active_mm->pgd */
/linux-4.4.14/arch/x86/mm/
H A Dtlb.c43 struct mm_struct *active_mm = this_cpu_read(cpu_tlbstate.active_mm); leave_mm() local
46 if (cpumask_test_cpu(cpu, mm_cpumask(active_mm))) { leave_mm()
47 cpumask_clear_cpu(cpu, mm_cpumask(active_mm)); leave_mm()
68 * 1a2) update cpu active_mm
78 * cpu active_mm is correct, cpu0 already handles flush ipis.
107 if (f->flush_mm != this_cpu_read(cpu_tlbstate.active_mm)) flush_tlb_func()
200 if (current->active_mm != mm) { flush_tlb_mm_range()
251 if (current->active_mm == mm) { flush_tlb_page()
H A Dinit.c738 .active_mm = &init_mm,
H A Dfault.c385 pgd = pgd_offset(current->active_mm, address); vmalloc_fault()
/linux-4.4.14/arch/powerpc/mm/
H A Dicswx.h25 if (mm == current->active_mm) sync_cop()
26 switch_cop(current->active_mm); sync_cop()
H A Dicswx.c243 if ((acop_copro_type_bit(ct) & current->active_mm->context.acop) != 0) { acop_handle_fault()
244 sync_cop(current->active_mm); acop_handle_fault()
H A Dslice.c185 if (mm != current->active_mm) slice_flush_segments()
189 get_paca()->context = current->active_mm->context; slice_flush_segments()
/linux-4.4.14/arch/alpha/include/asm/
H A Dtlbflush.h84 flush_tlb_current(current->active_mm); flush_tlb()
109 if (mm == current->active_mm) flush_tlb_mm()
121 if (mm == current->active_mm) flush_tlb_page()
H A Dcacheflush.h55 if (current->active_mm == mm) flush_icache_user_range()
H A Dmmu_context.h190 struct mm_struct * mm = current->active_mm; \
/linux-4.4.14/arch/hexagon/mm/
H A Dvm_tlb.c42 if (mm->context.ptbase == current->active_mm->context.ptbase) flush_tlb_range()
71 if (current->active_mm->context.ptbase == mm->context.ptbase) flush_tlb_mm()
82 if (mm->context.ptbase == current->active_mm->context.ptbase) flush_tlb_page()
/linux-4.4.14/arch/ia64/include/asm/
H A Dtlbflush.h41 if (mm == current->active_mm) local_finish_flush_tlb_mm()
80 if (vma->vm_mm == current->active_mm) flush_tlb_page()
/linux-4.4.14/arch/x86/include/asm/
H A Dtlbflush.h20 struct mm_struct *active_mm; member in struct:tlb_state
187 if (mm == current->active_mm) flush_tlb_mm()
194 if (vma->vm_mm == current->active_mm) flush_tlb_page()
201 if (vma->vm_mm == current->active_mm) flush_tlb_range()
208 if (mm == current->active_mm) flush_tlb_mm_range()
259 this_cpu_write(cpu_tlbstate.active_mm, &init_mm); reset_lazy_tlbstate()
H A Dmmu_context.h115 this_cpu_write(cpu_tlbstate.active_mm, next); switch_mm()
177 BUG_ON(this_cpu_read(cpu_tlbstate.active_mm) != next); switch_mm()
/linux-4.4.14/arch/alpha/kernel/
H A Dsmp.c148 current->active_mm = &init_mm; smp_callin()
167 DBGS(("smp_callin: commencing CPU %d current %p active_mm %p\n", smp_callin()
168 cpuid, current, current->active_mm)); smp_callin()
643 if (mm == current->active_mm && !asn_locked()) ipi_flush_tlb_mm()
654 if (mm == current->active_mm) { flush_tlb_mm()
689 if (mm == current->active_mm && !asn_locked()) ipi_flush_tlb_page()
703 if (mm == current->active_mm) { flush_tlb_page()
742 if (mm == current->active_mm && !asn_locked()) ipi_flush_icache_page()
759 if (mm == current->active_mm) { flush_icache_user_range()
/linux-4.4.14/arch/arc/kernel/
H A Dtroubleshoot.c88 struct mm_struct *active_mm = current->active_mm; show_faulting_vma() local
93 down_read(&active_mm->mmap_sem); show_faulting_vma()
94 vma = find_vma(active_mm, address); show_faulting_vma()
115 up_read(&active_mm->mmap_sem); show_faulting_vma()
H A Dasm-offsets.c38 DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm)); main()
H A Dsmp.c126 current->active_mm = mm; start_kernel_secondary()
/linux-4.4.14/arch/score/mm/
H A Dtlb-score.c60 * If mm is currently active_mm, we can't really drop it. Instead,
116 if (mm == current->active_mm) local_flush_tlb_range()
221 if (current->active_mm != vma->vm_mm) __update_tlb()
/linux-4.4.14/arch/m68k/include/asm/
H A Dtlbflush.h80 if (mm == current->active_mm) flush_tlb_mm()
86 if (vma->vm_mm == current->active_mm) { flush_tlb_page()
97 if (vma->vm_mm == current->active_mm) flush_tlb_range()
H A Dmmu_context.h84 static inline void activate_mm(struct mm_struct *active_mm, activate_mm() argument
/linux-4.4.14/arch/ia64/mm/
H A Dtlb.c243 struct mm_struct *active_mm = current->active_mm; ia64_global_tlb_purge() local
247 if (mm != active_mm) { ia64_global_tlb_purge()
249 if (mm && active_mm) { ia64_global_tlb_purge()
272 if (mm != active_mm) { ia64_global_tlb_purge()
273 activate_context(active_mm); ia64_global_tlb_purge()
309 if (mm != current->active_mm) { flush_tlb_range()
325 if (mm != current->active_mm || cpumask_weight(mm_cpumask(mm)) != 1) { flush_tlb_range()
/linux-4.4.14/arch/s390/kernel/
H A Dprocessor.c41 current->active_mm = &init_mm; cpu_init()
/linux-4.4.14/arch/metag/include/asm/
H A Dtlbflush.h48 if (mm == current->active_mm) flush_tlb_mm()
/linux-4.4.14/arch/sparc/mm/
H A Dfault_32.c49 printk(KERN_ALERT "tsk->{mm,active_mm}->context = %08lx\n", unhandled_fault()
50 (tsk->mm ? tsk->mm->context : tsk->active_mm->context)); unhandled_fault()
51 printk(KERN_ALERT "tsk->{mm,active_mm}->pgd = %08lx\n", unhandled_fault()
53 (unsigned long) tsk->active_mm->pgd)); unhandled_fault()
362 pgd = tsk->active_mm->pgd + offset; do_sparc_fault()
H A Dfault_64.c64 printk(KERN_ALERT "tsk->{mm,active_mm}->context = %016lx\n", unhandled_fault()
67 CTX_HWBITS(tsk->active_mm->context))); unhandled_fault()
68 printk(KERN_ALERT "tsk->{mm,active_mm}->pgd = %016lx\n", unhandled_fault()
70 (unsigned long) tsk->active_mm->pgd)); unhandled_fault()
H A Dsrmmu.c1660 if (atomic_read(&mm->mm_users) == 1 && current->active_mm == mm) smp_flush_tlb_mm()
/linux-4.4.14/arch/mips/include/asm/
H A Dmmu_context.h154 * Mark current->active_mm as not "active" anymore. switch_mm()
202 * If mm is currently active_mm, we can't really drop it. Instead,
/linux-4.4.14/arch/hexagon/include/asm/
H A Dpgalloc.h126 current->active_mm->context.generation = kmap_generation; pmd_populate_kernel()
136 ppmd = (pmd_t *)current->active_mm->pgd + pmdindex; pmd_populate_kernel()
/linux-4.4.14/arch/arm64/kernel/
H A Dsuspend.c63 struct mm_struct *mm = current->active_mm; cpu_suspend()
95 * If the current active_mm != &init_mm we entered cpu_suspend cpu_suspend()
H A Dasm-offsets.c34 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
H A Defi.c353 efi_set_pgd(current->active_mm); efi_virtmap_unload()
H A Dsmp.c144 current->active_mm = mm; secondary_start_kernel()
/linux-4.4.14/arch/sparc/kernel/
H A Dunaligned_32.c225 printk(KERN_ALERT "current->{mm,active_mm}->context = %08lx\n", kernel_mna_trap_fault()
227 current->active_mm->context)); kernel_mna_trap_fault()
228 printk(KERN_ALERT "current->{mm,active_mm}->pgd = %08lx\n", kernel_mna_trap_fault()
230 (unsigned long) current->active_mm->pgd)); kernel_mna_trap_fault()
H A Dsun4m_smp.c63 current->active_mm = &init_mm; sun4m_cpu_pre_online()
H A Dsmp_64.c122 current->active_mm = &init_mm; smp_callin()
841 /* It is not valid to test "current->active_mm == mm" here. tsb_sync()
972 mm = current->active_mm; smp_new_mmu_context_version_client()
1033 * that processes tsk->active_mm->cpu_vm_mask does not have the
H A Dsun4d_smp.c97 current->active_mm = &init_mm; sun4d_cpu_pre_online()
H A Dunaligned_64.c279 CTX_HWBITS(current->active_mm->context))); kernel_mna_trap_fault()
282 (unsigned long) current->active_mm->pgd)); kernel_mna_trap_fault()
H A Dleon_smp.c97 current->active_mm = &init_mm; leon_cpu_pre_online()
H A Dtraps_32.c452 current->active_mm = &init_mm; trap_init()
H A Dtraps_64.c2768 current->active_mm = &init_mm; trap_init()
/linux-4.4.14/arch/sh/mm/
H A Dtlb-pteaex.c25 if (vma && current->active_mm != vma->vm_mm) __update_tlb()
H A Dtlb-sh3.c36 if (vma && current->active_mm != vma->vm_mm) __update_tlb()
H A Dtlb-sh4.c24 if (vma && current->active_mm != vma->vm_mm) __update_tlb()
H A Dcache-sh4.c235 if ((vma->vm_mm == current->active_mm)) sh4_flush_cache_page()
/linux-4.4.14/arch/openrisc/kernel/
H A Dasm-offsets.c50 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
/linux-4.4.14/arch/h8300/kernel/
H A Dasm-offsets.c30 OFFSET(TASK_ACTIVE_MM, task_struct, active_mm); main()
/linux-4.4.14/arch/arm/kernel/
H A Dsuspend.c19 struct mm_struct *mm = current->active_mm; cpu_suspend()
H A Dasm-offsets.c61 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
H A Dsmp.c371 current->active_mm = mm; secondary_start_kernel()
/linux-4.4.14/arch/mn10300/include/asm/
H A Dtlbflush.h18 struct mm_struct *active_mm; member in struct:tlb_state
H A Dmmu_context.h150 per_cpu(cpu_tlbstate, cpu).active_mm = next; switch_mm()
/linux-4.4.14/arch/parisc/include/asm/
H A Dtlbflush.h72 if (mm == current->active_mm) flush_tlb_mm()
/linux-4.4.14/arch/x86/kernel/
H A Dldt.c29 if (current->active_mm != current_mm) flush_ldt()
32 pc = &current->active_mm->context; flush_ldt()
/linux-4.4.14/arch/xtensa/mm/
H A Dtlb.c67 if (mm == current->active_mm) { local_flush_tlb_mm()
178 mm = task->active_mm; get_pte_for_vaddr()
H A Dfault.c207 struct mm_struct *act_mm = current->active_mm; do_page_fault()
/linux-4.4.14/arch/arm/mm/
H A Dioremap.c176 * Ensure that the active_mm is up to date - we want to unmap_area_sections()
179 if (current->active_mm->context.vmalloc_seq != init_mm.context.vmalloc_seq) unmap_area_sections()
180 __check_vmalloc_seq(current->active_mm); unmap_area_sections()
H A Dinit.c697 set_section_perms(perms, n, true, current->active_mm);
727 current->active_mm); set_kernel_text_rw()
733 current->active_mm); set_kernel_text_ro()
H A Dflush.c243 struct mm_struct *mm = current->active_mm; __flush_dcache_aliases()
H A Dfault.c189 struct mm_struct *mm = tsk->active_mm; do_bad_area()
/linux-4.4.14/arch/unicore32/kernel/
H A Dasm-offsets.c39 DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
/linux-4.4.14/arch/unicore32/mm/
H A Dproc-macros.S58 * act_mm - get current->active_mm
H A Dfault.c138 struct mm_struct *mm = tsk->active_mm; do_bad_area()
H A Dmmu.c459 pgd = current->active_mm->pgd; setup_mm_for_reboot()
/linux-4.4.14/arch/xtensa/kernel/
H A Dasm-offsets.c74 DEFINE(TASK_ACTIVE_MM, offsetof (struct task_struct, active_mm)); main()
H A Dsmp.c140 current->active_mm = mm; secondary_start_kernel()
H A Dentry.S1536 * to be NULL while tsk->active_mm is nonzero if we faulted on
1538 * active_mm instead to avoid a fault in this handler. See
1541 * (or search Internet on "mm vs. active_mm")
1544 * mm = tsk->active_mm;
1631 /* Even more unlikely case active_mm == 0.
/linux-4.4.14/arch/cris/arch-v10/mm/
H A Dtlb.c160 * we need our own copy of it because current and active_mm switch_mm()
/linux-4.4.14/arch/cris/arch-v32/mm/
H A Dtlb.c193 * copy of it because current and active_mm might be invalid switch_mm()
/linux-4.4.14/arch/s390/include/asm/
H A Dtlbflush.h91 active = (mm == current->active_mm) ? 1 : 0; __tlb_flush_asce()
H A Dpgtable.h1015 active = (mm == current->active_mm) ? 1 : 0; ptep_flush_direct()
1032 active = (mm == current->active_mm) ? 1 : 0; ptep_flush_lazy()
1498 active = (mm == current->active_mm) ? 1 : 0; pmdp_flush_direct()
1515 active = (mm == current->active_mm) ? 1 : 0; pmdp_flush_lazy()
/linux-4.4.14/arch/microblaze/include/asm/
H A Dmmu_context_mm.h129 static inline void activate_mm(struct mm_struct *active_mm, activate_mm() argument
/linux-4.4.14/arch/microblaze/kernel/
H A Dasm-offsets.c79 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
/linux-4.4.14/arch/mips/mm/
H A Dtlb-r3k.c199 if (current->active_mm != vma->vm_mm) __update_tlb()
H A Dtlb-r8k.c194 if (current->active_mm != vma->vm_mm) __update_tlb()
H A Dc-tx39.c202 if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID)) { tx39_flush_cache_page()
H A Dtlb-r4k.c297 if (current->active_mm != vma->vm_mm) __update_tlb()
H A Dc-r4k.c582 if ((mm == current->active_mm) && (pte_val(*ptep) & _PAGE_VALID)) local_r4k_flush_cache_page()
605 if (vaddr && cpu_has_vtag_icache && mm == current->active_mm) { local_r4k_flush_cache_page()
/linux-4.4.14/arch/openrisc/mm/
H A Dtlb.c148 * we need our own copy of it because current and active_mm switch_mm()
H A Dfault.c302 * Use current_pgd instead of tsk->active_mm->pgd do_page_fault()
/linux-4.4.14/arch/hexagon/kernel/
H A Dsmp.c166 current->active_mm = &init_mm; start_secondary()
/linux-4.4.14/include/linux/
H A Dinit_task.h203 .active_mm = &init_mm, \
H A Dsched.h1444 struct mm_struct *mm, *active_mm; member in struct:task_struct
/linux-4.4.14/fs/
H A Dexec.c846 struct mm_struct *old_mm, *active_mm; exec_mmap() local
868 active_mm = tsk->active_mm; exec_mmap()
870 tsk->active_mm = mm; exec_mmap()
871 activate_mm(active_mm, mm); exec_mmap()
877 BUG_ON(active_mm != old_mm); exec_mmap()
883 mmdrop(active_mm); exec_mmap()
/linux-4.4.14/arch/arm/mach-rpc/
H A Decard.c249 struct mm_struct *active_mm = current->active_mm; ecard_init_mm() local
255 current->active_mm = mm; ecard_init_mm()
256 activate_mm(active_mm, mm); ecard_init_mm()
257 mmdrop(active_mm); ecard_init_mm()
/linux-4.4.14/arch/tile/kernel/
H A Dsmpboot.c164 current->active_mm = &init_mm; start_secondary()
/linux-4.4.14/arch/x86/power/
H A Dcpu.c157 load_mm_ldt(current->active_mm); /* This does lldt */ fix_processor_context()
/linux-4.4.14/arch/alpha/mm/
H A Dfault.c250 pgd = current->active_mm->pgd + index; do_page_fault()
/linux-4.4.14/arch/arc/mm/
H A Dfault.c38 pgd = pgd_offset_fast(current->active_mm, address); handle_kernel_vaddr_fault()
H A Dtlbex.S147 ; Linux keeps ASID (Address Space ID) in task->active_mm->context.asid
H A Dtlb.c546 if (current->active_mm != vma->vm_mm) create_tlb()
/linux-4.4.14/arch/blackfin/mach-common/
H A Dsmp.c312 current->active_mm = mm; secondary_start_kernel()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dsmp.c159 current->active_mm = NULL; /* for sanity */ pnv_smp_cpu_kill_self()
/linux-4.4.14/arch/score/kernel/
H A Dtraps.c339 current->active_mm = &init_mm; trap_init()
/linux-4.4.14/arch/sh/kernel/
H A Dsmp.c185 current->active_mm = mm; start_secondary()
/linux-4.4.14/arch/nios2/mm/
H A Dcacheflush.c75 struct mm_struct *mm = current->active_mm; flush_aliases()
/linux-4.4.14/arch/ia64/kernel/
H A Dsmp.c298 if (likely(mm == current->active_mm && atomic_read(&mm->mm_users) == 1)) smp_flush_tlb_mm()
H A Dsetup.c991 current->active_mm = &init_mm; cpu_init()
/linux-4.4.14/arch/m32r/kernel/
H A Dsetup.c407 current->active_mm = &init_mm; cpu_init()
H A Dsmp.c458 if (flush_mm == current->active_mm) smp_invalidate_interrupt()
/linux-4.4.14/arch/avr32/mm/
H A Dtlb.c109 if (vma && current->active_mm != vma->vm_mm) update_mmu_cache()
/linux-4.4.14/arch/blackfin/kernel/
H A Dasm-offsets.c29 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
/linux-4.4.14/arch/tile/include/asm/
H A Dprocessor.h173 #define VDSO_BASE ((unsigned long)current->active_mm->context.vdso_base)
/linux-4.4.14/arch/parisc/kernel/
H A Dsmp.c283 current->active_mm = &init_mm; smp_cpu_init()
/linux-4.4.14/arch/cris/mm/
H A Dfault.c316 * Use current_pgd instead of tsk->active_mm->pgd do_page_fault()
/linux-4.4.14/arch/s390/mm/
H A Dpgtable.c45 if (current->active_mm == mm) { __crst_table_upgrade()
85 if (current->active_mm == mm) { crst_table_downgrade()
98 if (current->active_mm == mm) crst_table_downgrade()
/linux-4.4.14/arch/x86/xen/
H A Dmmu.c1007 struct mm_struct *active_mm; drop_other_mm_ref() local
1009 active_mm = this_cpu_read(cpu_tlbstate.active_mm); drop_other_mm_ref()
1011 if (active_mm == mm && this_cpu_read(cpu_tlbstate.state) != TLBSTATE_OK) drop_other_mm_ref()
1025 if (current->active_mm == mm) { xen_drop_mm_ref()
1061 if (current->active_mm == mm) xen_drop_mm_ref()
/linux-4.4.14/arch/xtensa/include/asm/
H A Dpgtable.h39 * (t->mm ? t->mm : t->active_mm)->pgd
/linux-4.4.14/arch/metag/kernel/
H A Dsmp.c349 current->active_mm = mm; secondary_start_kernel()
/linux-4.4.14/arch/ia64/sn/kernel/sn2/
H A Dsn2_smp.c168 int mymm = (mm == current->active_mm && mm == current->mm); sn2_global_tlb_purge()
/linux-4.4.14/arch/m32r/mm/
H A Dfault.c358 if (vma && current->active_mm != vma->vm_mm) update_mmu_cache()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dcommon.c1407 me->active_mm = &init_mm; cpu_init()
1456 curr->active_mm = &init_mm; cpu_init()
H A Dperf_event.c2229 ldt = lockless_dereference(current->active_mm->context.ldt); get_segment_base()
/linux-4.4.14/arch/mn10300/kernel/
H A Dsmp.c593 current->active_mm = &init_mm; smp_cpu_init()
997 cpumask_clear_cpu(cpu, &mm_cpumask(current->active_mm)); __cpu_disable()
/linux-4.4.14/drivers/cpufreq/
H A Dpmac32-cpufreq.c301 switch_mmu_context(NULL, current->active_mm); pmu_set_cpu_speed()
/linux-4.4.14/arch/arm64/mm/
H A Dfault.c190 struct mm_struct *mm = tsk->active_mm; do_bad_area()
/linux-4.4.14/drivers/macintosh/
H A Dvia-pmu.c1853 switch_mmu_context(NULL, current->active_mm); powerbook_sleep_grackle()
1942 switch_mmu_context(NULL, current->active_mm); powerbook_sleep_Core99()
/linux-4.4.14/kernel/
H A Dfork.c960 tsk->active_mm = NULL; copy_mm()
987 tsk->active_mm = mm; copy_mm()
H A Dexit.c429 BUG_ON(mm != tsk->active_mm); exit_mm()
/linux-4.4.14/kernel/sched/
H A Dcore.c2674 oldmm = prev->active_mm; context_switch()
2683 next->active_mm = oldmm; context_switch()
2690 prev->active_mm = NULL; context_switch()
5178 struct mm_struct *mm = current->active_mm; idle_task_exit()
/linux-4.4.14/arch/mips/kernel/
H A Dtraps.c2145 current->active_mm = &init_mm; per_cpu_trap_init()

Completed in 2504 milliseconds