| #ifdef CONFIG_CPU_HAS_ASID |
| #ifdef CONFIG_CPU_HAS_ASID |
| #define ASID(mm) ((mm)->context.id & 255) |
| /* init_mm.context.id_lock should be initialized. */ |
| #define INIT_MM_CONTEXT(name) \ |
| .context.id_lock = __RAW_SPIN_LOCK_UNLOCKED(name.context.id_lock), |
| * Copyright (C) 2002, David McCullough <davidm@snapgear.com> |
| * modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com> |
| * switch_mm() may do a full cache flush over the context switch, |
| * so enable interrupts over the context switch to avoid high |
| #define __ARCH_WANT_INTERRUPTS_ON_CTXSW |