Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Definitions and declarations for MIPS MT support that are common between
0004  * the VSMP, and AP/SP kernel models.
0005  */
0006 #ifndef __ASM_MIPS_MT_H
0007 #define __ASM_MIPS_MT_H
0008 
0009 #include <linux/cpumask.h>
0010 
0011 /*
0012  * How many VPEs and TCs is Linux allowed to use?  0 means no limit.
0013  */
0014 extern int tclimit;
0015 extern int vpelimit;
0016 
0017 extern cpumask_t mt_fpu_cpumask;
0018 extern unsigned long mt_fpemul_threshold;
0019 
0020 extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value);
0021 
0022 #ifdef CONFIG_MIPS_MT
0023 extern void mips_mt_set_cpuoptions(void);
0024 #else
0025 static inline void mips_mt_set_cpuoptions(void) { }
0026 #endif
0027 
0028 struct class;
0029 extern struct class *mt_class;
0030 
0031 #endif /* __ASM_MIPS_MT_H */