topology.h 722 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _ASM_S390_TOPOLOGY_H
  2. #define _ASM_S390_TOPOLOGY_H
  3. #include <linux/cpumask.h>
  4. #define mc_capable() (1)
  5. const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
  6. extern cpumask_t cpu_core_map[NR_CPUS];
  7. #define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
  8. int topology_set_cpu_management(int fc);
  9. void topology_schedule_update(void);
  10. #define POLARIZATION_UNKNWN (-1)
  11. #define POLARIZATION_HRZ (0)
  12. #define POLARIZATION_VL (1)
  13. #define POLARIZATION_VM (2)
  14. #define POLARIZATION_VH (3)
  15. #ifdef CONFIG_SMP
  16. void s390_init_cpu_topology(void);
  17. #else
  18. static inline void s390_init_cpu_topology(void)
  19. {
  20. };
  21. #endif
  22. #define SD_MC_INIT SD_CPU_INIT
  23. #include <asm-generic/topology.h>
  24. #endif /* _ASM_S390_TOPOLOGY_H */