xref: /openbmc/linux/arch/mips/include/asm/mips_mt.h (revision 95b384f9)
1 /*
2  * Definitions and declarations for MIPS MT support that are common between
3  * the VSMP, and AP/SP kernel models.
4  */
5 #ifndef __ASM_MIPS_MT_H
6 #define __ASM_MIPS_MT_H
7 
8 #include <linux/cpumask.h>
9 
10 /*
11  * How many VPEs and TCs is Linux allowed to use?  0 means no limit.
12  */
13 extern int tclimit;
14 extern int vpelimit;
15 
16 extern cpumask_t mt_fpu_cpumask;
17 extern unsigned long mt_fpemul_threshold;
18 
19 extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value);
20 
21 #ifdef CONFIG_MIPS_MT
22 extern void mips_mt_set_cpuoptions(void);
23 #else
24 static inline void mips_mt_set_cpuoptions(void) { }
25 #endif
26 
27 struct class;
28 extern struct class *mt_class;
29 
30 #endif /* __ASM_MIPS_MT_H */
31