13 #include <linux/sched.h>
14 #include <linux/kernel.h>
15 #include <linux/errno.h>
16 #include <linux/string.h>
17 #include <linux/types.h>
21 #include <linux/export.h>
23 #include <linux/slab.h>
25 #include <asm/mmu_context.h>
39 #define MAX_CONTEXT ((1UL << CONTEXT_BITS) - 1)
50 spin_lock(&mmu_context_lock);
52 spin_unlock(&mmu_context_lock);
60 spin_lock(&mmu_context_lock);
62 spin_unlock(&mmu_context_lock);
86 #ifdef CONFIG_PPC_ICSWX
102 spin_lock(&mmu_context_lock);
104 spin_unlock(&mmu_context_lock);
110 #ifdef CONFIG_PPC_ICSWX