topology.h 677 B

123456789101112131415161718192021222324252627282930313233
  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. extern cpumask_t cpu_core_map[NR_CPUS];
  7. #define topology_core_siblings(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. #include <asm-generic/topology.h>
  23. #endif /* _ASM_S390_TOPOLOGY_H */