topology.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _ASM_MACH_TOPOLOGY_H
  2. #define _ASM_MACH_TOPOLOGY_H 1
  3. #include <asm/sn/arch.h>
  4. #include <asm/sn/hub.h>
  5. #include <asm/mmzone.h>
  6. #define cpu_to_node(cpu) (cpu_data[(cpu)].p_nodeid)
  7. #define parent_node(node) (node)
  8. #define node_to_cpumask(node) (hub_data(node)->h_cpus)
  9. #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node)))
  10. struct pci_bus;
  11. extern int pcibus_to_node(struct pci_bus *);
  12. #define pcibus_to_cpumask(bus) (cpu_online_map)
  13. extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES];
  14. #define node_distance(from, to) (__node_distances[(from)][(to)])
  15. /* sched_domains SD_NODE_INIT for SGI IP27 machines */
  16. #define SD_NODE_INIT (struct sched_domain) { \
  17. .span = CPU_MASK_NONE, \
  18. .parent = 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. .per_cpu_gain = 100, \
  26. .flags = SD_LOAD_BALANCE \
  27. | SD_BALANCE_EXEC \
  28. | SD_WAKE_BALANCE, \
  29. .last_balance = jiffies, \
  30. .balance_interval = 1, \
  31. .nr_balance_failed = 0, \
  32. }
  33. #endif /* _ASM_MACH_TOPOLOGY_H */