topology.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 = 2, \
  17. .wake_idx = 1, \
  18. .forkexec_idx = 1, \
  19. .flags = SD_LOAD_BALANCE \
  20. | SD_BALANCE_FORK \
  21. | SD_BALANCE_EXEC \
  22. | SD_SERIALIZE \
  23. | SD_WAKE_BALANCE, \
  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 node_to_cpumask(node) ((void)node, cpu_online_map)
  31. #define cpumask_of_node(node) ((void)node, cpu_online_mask)
  32. #define pcibus_to_node(bus) ((void)(bus), -1)
  33. #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
  34. CPU_MASK_ALL : \
  35. node_to_cpumask(pcibus_to_node(bus)))
  36. #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
  37. CPU_MASK_ALL_PTR : \
  38. cpumask_of_node(pcibus_to_node(bus)))
  39. #endif
  40. #include <asm-generic/topology.h>
  41. #endif /* _ASM_SH_TOPOLOGY_H */