diff options
Diffstat (limited to 'arch/mips/include/asm/cpu-info.h')
-rw-r--r-- | arch/mips/include/asm/cpu-info.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-info.h b/arch/mips/include/asm/cpu-info.h index b090aa51d644..1ae26a393153 100644 --- a/arch/mips/include/asm/cpu-info.h +++ b/arch/mips/include/asm/cpu-info.h | |||
@@ -132,4 +132,14 @@ struct proc_cpuinfo_notifier_args { | |||
132 | # define cpu_vpe_id(cpuinfo) ({ (void)cpuinfo; 0; }) | 132 | # define cpu_vpe_id(cpuinfo) ({ (void)cpuinfo; 0; }) |
133 | #endif | 133 | #endif |
134 | 134 | ||
135 | static inline unsigned long cpu_asid_inc(void) | ||
136 | { | ||
137 | return 1 << CONFIG_MIPS_ASID_SHIFT; | ||
138 | } | ||
139 | |||
140 | static inline unsigned long cpu_asid_mask(struct cpuinfo_mips *cpuinfo) | ||
141 | { | ||
142 | return ((1 << CONFIG_MIPS_ASID_BITS) - 1) << CONFIG_MIPS_ASID_SHIFT; | ||
143 | } | ||
144 | |||
135 | #endif /* __ASM_CPU_INFO_H */ | 145 | #endif /* __ASM_CPU_INFO_H */ |