mips_mt.h 668 B

12345678910111213141516171819202122232425262728293031
  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. #include <linux/cpumask.h>
  8. /*
  9. * How many VPEs and TCs is Linux allowed to use? 0 means no limit.
  10. */
  11. extern int tclimit;
  12. extern int vpelimit;
  13. extern cpumask_t mt_fpu_cpumask;
  14. extern unsigned long mt_fpemul_threshold;
  15. extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value);
  16. #ifdef CONFIG_MIPS_MT
  17. extern void mips_mt_set_cpuoptions(void);
  18. #else
  19. static inline void mips_mt_set_cpuoptions(void) { }
  20. #endif
  21. struct class;
  22. extern struct class *mt_class;
  23. #endif /* __ASM_MIPS_MT_H */