topology.h 778 B

123456789101112131415161718192021222324252627282930313233343536
  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_siblings(cpu) (cpu_core_map[cpu])
  8. #define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
  9. int topology_set_cpu_management(int fc);
  10. void topology_schedule_update(void);
  11. #define POLARIZATION_UNKNWN (-1)
  12. #define POLARIZATION_HRZ (0)
  13. #define POLARIZATION_VL (1)
  14. #define POLARIZATION_VM (2)
  15. #define POLARIZATION_VH (3)
  16. #ifdef CONFIG_SMP
  17. void s390_init_cpu_topology(void);
  18. #else
  19. static inline void s390_init_cpu_topology(void)
  20. {
  21. };
  22. #endif
  23. #define SD_MC_INIT SD_CPU_INIT
  24. #include <asm-generic/topology.h>
  25. #endif /* _ASM_S390_TOPOLOGY_H */