topology.h 566 B

1234567891011121314151617
  1. #ifndef _ASM_SPARC64_TOPOLOGY_H
  2. #define _ASM_SPARC64_TOPOLOGY_H
  3. #ifdef CONFIG_SMP
  4. #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
  5. #define topology_core_id(cpu) (cpu_data(cpu).core_id)
  6. #define topology_core_siblings(cpu) (cpu_core_map[cpu])
  7. #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu])
  8. #define mc_capable() (sparc64_multi_core)
  9. #define smt_capable() (sparc64_multi_core)
  10. #endif /* CONFIG_SMP */
  11. #include <asm-generic/topology.h>
  12. #define cpu_coregroup_map(cpu) (cpu_core_map[cpu])
  13. #endif /* _ASM_SPARC64_TOPOLOGY_H */