topology.h 825 B

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