Commit | Line | Data |
---|---|---|
41c594ab | 1 | /* |
7a448b57 | 2 | * Definitions and declarations for MIPS MT support that are common between |
b633648c | 3 | * the VSMP, and AP/SP kernel models. |
41c594ab RB |
4 | */ |
5 | #ifndef __ASM_MIPS_MT_H | |
6 | #define __ASM_MIPS_MT_H | |
7 | ||
32fac80b RB |
8 | #include <linux/cpumask.h> |
9 | ||
07cc0c9e RB |
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 | ||
41c594ab RB |
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); | |
d94c90f8 PB |
20 | |
21 | #ifdef CONFIG_MIPS_MT | |
41c594ab | 22 | extern void mips_mt_set_cpuoptions(void); |
d94c90f8 PB |
23 | #else |
24 | static inline void mips_mt_set_cpuoptions(void) { } | |
25 | #endif | |
41c594ab | 26 | |
27a3bbaf RB |
27 | struct class; |
28 | extern struct class *mt_class; | |
29 | ||
41c594ab | 30 | #endif /* __ASM_MIPS_MT_H */ |