android_kernel_motorola_sm6225/arch/arc
Vineet Gupta 3daa48d1d9 ARC: [ASID] get_new_mmu_context() to conditionally allocate new ASID
ASID allocation changes/1

This patch does 2 things:

(1) get_new_mmu_context() NOW moves mm->ASID to a new value ONLY if it
    was from a prev allocation cycle/generation OR if mm had no ASID
    allocated (vs. before would unconditionally moving to a new ASID)

    Callers desiring unconditional update of ASID, e.g.local_flush_tlb_mm()
    (for parent's address space invalidation at fork) need to first force
    the parent to an unallocated ASID.

(2) get_new_mmu_context() always sets the MMU PID reg with unchanged/new
    ASID value.

The gains are:
- consolidation of all asid alloc logic into get_new_mmu_context()
- avoiding code duplication in switch_mm() for PID reg setting
- Enables future change to fold activate_mm() into switch_mm()

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
2013-08-30 21:42:18 +05:30
..
boot ARC: Add some .gitignore entries 2013-08-26 09:40:24 +05:30
configs Couple of Platform updates (Device Tree files primarily) given that the 2013-07-10 10:11:26 -07:00
include ARC: [ASID] get_new_mmu_context() to conditionally allocate new ASID 2013-08-30 21:42:18 +05:30
kernel ARC: Entry Handler tweaks: Optimize away redundant IRQ_DISABLE_SAVE 2013-08-26 09:40:25 +05:30
lib ARC: [lib] strchr breakage in Big-endian configuration 2013-08-24 11:24:53 -07:00
mm ARC: [ASID] get_new_mmu_context() to conditionally allocate new ASID 2013-08-30 21:42:18 +05:30
oprofile ARC: OProfile support 2013-02-15 23:16:00 +05:30
plat-arcfpga Couple of Platform updates (Device Tree files primarily) given that the 2013-07-10 10:11:26 -07:00
plat-tb10x ARC: [TB10x] Updates for irqchip driver 2013-06-28 15:07:42 +05:30
Kbuild ARC: Build system: Makefiles, Kconfig, Linker script 2013-02-11 20:00:25 +05:30
Kconfig Merge branch 'kconfig-diet' from Dave Hansen 2013-07-04 11:25:51 -07:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Makefile ARC: Adjustments for gcc 4.8 2013-06-27 14:35:32 +05:30