topology.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ASM_MACH_TOPOLOGY_H
  2. #define _ASM_MACH_TOPOLOGY_H 1
  3. #include <asm/sn/hub.h>
  4. #include <asm/mmzone.h>
  5. #define cpu_to_node(cpu) (cpu_data[(cpu)].p_nodeid)
  6. #define parent_node(node) (node)
  7. #define node_to_cpumask(node) (hub_data(node)->h_cpus)
  8. #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node)))
  9. struct pci_bus;
  10. extern int pcibus_to_node(struct pci_bus *);
  11. #define pcibus_to_cpumask(bus) (cpu_online_map)
  12. extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES];
  13. #define node_distance(from, to) (__node_distances[(from)][(to)])
  14. /* sched_domains SD_NODE_INIT for SGI IP27 machines */
  15. #define SD_NODE_INIT (struct sched_domain) { \
  16. .span = CPU_MASK_NONE, \
  17. .parent = NULL, \
  18. .child = NULL, \
  19. .groups = NULL, \
  20. .min_interval = 8, \
  21. .max_interval = 32, \
  22. .busy_factor = 32, \
  23. .imbalance_pct = 125, \
  24. .cache_nice_tries = 1, \
  25. .flags = SD_LOAD_BALANCE \
  26. | SD_BALANCE_EXEC \
  27. | SD_WAKE_BALANCE, \
  28. .last_balance = jiffies, \
  29. .balance_interval = 1, \
  30. .nr_balance_failed = 0, \
  31. }
  32. #endif /* _ASM_MACH_TOPOLOGY_H */