ARCv2: mm: TLB Miss optim: SMP builds can cache pgd pointer in mmu scratch reg
[linux-2.6-microblaze.git] / arch / arc / include / asm / mmu.h
index 98cadf1..0abacb8 100644 (file)
 #define ARC_REG_SCRATCH_DATA0  0x46c
 #endif
 
+#if defined(CONFIG_ISA_ARCV2) || !defined(CONFIG_SMP)
+#define        ARC_USE_SCRATCH_REG
+#endif
+
 /* Bits in MMU PID register */
 #define __TLB_ENABLE           (1 << 31)
 #define __PROG_ENABLE          (1 << 30)