Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_MACH_TOPOLOGY_H |
| 2 | #define _ASM_MACH_TOPOLOGY_H 1 |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #include <asm/sn/hub.h> |
| 5 | #include <asm/mmzone.h> |
| 6 | |
| 7 | #define cpu_to_node(cpu) (cpu_data[(cpu)].p_nodeid) |
| 8 | #define parent_node(node) (node) |
| 9 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) |
| 10 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) |
Ralf Baechle | 9dbdfce | 2005-09-15 08:52:34 +0000 | [diff] [blame] | 11 | struct pci_bus; |
| 12 | extern int pcibus_to_node(struct pci_bus *); |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define pcibus_to_cpumask(bus) (cpu_online_map) |
| 15 | |
| 16 | extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; |
| 17 | |
| 18 | #define node_distance(from, to) (__node_distances[(from)][(to)]) |
| 19 | |
| 20 | /* sched_domains SD_NODE_INIT for SGI IP27 machines */ |
| 21 | #define SD_NODE_INIT (struct sched_domain) { \ |
| 22 | .span = CPU_MASK_NONE, \ |
| 23 | .parent = NULL, \ |
Siddha, Suresh B | 1a84887 | 2006-10-03 01:14:08 -0700 | [diff] [blame] | 24 | .child = NULL, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | .groups = NULL, \ |
| 26 | .min_interval = 8, \ |
| 27 | .max_interval = 32, \ |
| 28 | .busy_factor = 32, \ |
| 29 | .imbalance_pct = 125, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | .cache_nice_tries = 1, \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | .flags = SD_LOAD_BALANCE \ |
| 32 | | SD_BALANCE_EXEC \ |
| 33 | | SD_WAKE_BALANCE, \ |
| 34 | .last_balance = jiffies, \ |
| 35 | .balance_interval = 1, \ |
| 36 | .nr_balance_failed = 0, \ |
| 37 | } |
| 38 | |
| 39 | #endif /* _ASM_MACH_TOPOLOGY_H */ |