mips_mt.h 707 B

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