Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 1 | /* |
Ralf Baechle | b633648c5 | 2014-05-23 16:29:44 +0200 | [diff] [blame] | 2 | * Definitions and decalrations for MIPS MT support that are common between |
| 3 | * the VSMP, and AP/SP kernel models. |
Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 4 | */ |
| 5 | #ifndef __ASM_MIPS_MT_H |
| 6 | #define __ASM_MIPS_MT_H |
| 7 | |
Ralf Baechle | 32fac80 | 2007-03-04 18:23:48 +0000 | [diff] [blame] | 8 | #include <linux/cpumask.h> |
| 9 | |
Ralf Baechle | 07cc0c9 | 2007-07-27 19:31:10 +0100 | [diff] [blame] | 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 | |
Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 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); |
Paul Burton | d94c90f | 2014-03-24 10:19:25 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef CONFIG_MIPS_MT |
Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 22 | extern void mips_mt_set_cpuoptions(void); |
Paul Burton | d94c90f | 2014-03-24 10:19:25 +0000 | [diff] [blame] | 23 | #else |
| 24 | static inline void mips_mt_set_cpuoptions(void) { } |
| 25 | #endif |
Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 26 | |
Ralf Baechle | 27a3bba | 2007-02-07 13:48:59 +0000 | [diff] [blame] | 27 | struct class; |
| 28 | extern struct class *mt_class; |
| 29 | |
Ralf Baechle | 41c594a | 2006-04-05 09:45:45 +0100 | [diff] [blame] | 30 | #endif /* __ASM_MIPS_MT_H */ |