topology.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef _ASM_SH_TOPOLOGY_H
  2. #define _ASM_SH_TOPOLOGY_H
  3. #ifdef CONFIG_NUMA
  4. /* sched_domains SD_NODE_INIT for sh machines */
  5. #define SD_NODE_INIT (struct sched_domain) { \
  6. .parent = NULL, \
  7. .child = NULL, \
  8. .groups = NULL, \
  9. .min_interval = 8, \
  10. .max_interval = 32, \
  11. .busy_factor = 32, \
  12. .imbalance_pct = 125, \
  13. .cache_nice_tries = 2, \
  14. .busy_idx = 3, \
  15. .idle_idx = 2, \
  16. .newidle_idx = 0, \
  17. .wake_idx = 0, \
  18. .forkexec_idx = 0, \
  19. .flags = SD_LOAD_BALANCE \
  20. | SD_BALANCE_FORK \
  21. | SD_BALANCE_EXEC \
  22. | SD_BALANCE_NEWIDLE \
  23. | SD_SERIALIZE, \
  24. .last_balance = jiffies, \
  25. .balance_interval = 1, \
  26. .nr_balance_failed = 0, \
  27. }
  28. #define cpu_to_node(cpu) ((void)(cpu),0)
  29. #define parent_node(node) ((void)(node),0)
  30. #define cpumask_of_node(node) ((void)node, cpu_online_mask)
  31. #define pcibus_to_node(bus) ((void)(bus), -1)
  32. #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
  33. cpu_all_mask : \
  34. cpumask_of_node(pcibus_to_node(bus)))
  35. #endif
  36. #define mc_capable() (1)
  37. const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
  38. extern cpumask_t cpu_core_map[NR_CPUS];
  39. #define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
  40. #include <asm-generic/topology.h>
  41. #endif /* _ASM_SH_TOPOLOGY_H */