topology.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. .span = CPU_MASK_NONE, \
  7. .parent = NULL, \
  8. .child = NULL, \
  9. .groups = NULL, \
  10. .min_interval = 8, \
  11. .max_interval = 32, \
  12. .busy_factor = 32, \
  13. .imbalance_pct = 125, \
  14. .cache_nice_tries = 2, \
  15. .busy_idx = 3, \
  16. .idle_idx = 2, \
  17. .newidle_idx = 2, \
  18. .wake_idx = 1, \
  19. .forkexec_idx = 1, \
  20. .flags = SD_LOAD_BALANCE \
  21. | SD_BALANCE_FORK \
  22. | SD_BALANCE_EXEC \
  23. | SD_SERIALIZE \
  24. | SD_WAKE_BALANCE, \
  25. .last_balance = jiffies, \
  26. .balance_interval = 1, \
  27. .nr_balance_failed = 0, \
  28. }
  29. #define cpu_to_node(cpu) ((void)(cpu),0)
  30. #define parent_node(node) ((void)(node),0)
  31. #define node_to_cpumask(node) ((void)node, cpu_online_map)
  32. #define node_to_first_cpu(node) ((void)(node),0)
  33. #define pcibus_to_node(bus) ((void)(bus), -1)
  34. #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
  35. CPU_MASK_ALL : \
  36. node_to_cpumask(pcibus_to_node(bus)) \
  37. )
  38. #endif
  39. #include <asm-generic/topology.h>
  40. #endif /* _ASM_SH_TOPOLOGY_H */