Go to the documentation of this file.
11 #ifndef _ASM_IA64_TOPOLOGY_H
12 #define _ASM_IA64_TOPOLOGY_H
21 #define PENALTY_FOR_NODE_WITH_CPUS 255
26 #define RECLAIM_DISTANCE 15
31 #define cpumask_of_node(node) ((node) == -1 ? \
33 &node_to_cpu_mask[node])
40 #define parent_node(nid) (nid)
45 #define pcibus_to_node(bus) PCI_CONTROLLER(bus)->node
49 #define SD_CPU_INIT (struct sched_domain) { \
56 .imbalance_pct = 125, \
57 .cache_nice_tries = 2, \
63 .flags = SD_LOAD_BALANCE \
64 | SD_BALANCE_NEWIDLE \
68 .last_balance = jiffies, \
69 .balance_interval = 1, \
70 .nr_balance_failed = 0, \
76 #define topology_physical_package_id(cpu) (cpu_data(cpu)->socket_id)
77 #define topology_core_id(cpu) (cpu_data(cpu)->core_id)
78 #define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
79 #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu))
80 #define smt_capable() (smp_num_siblings > 1)
85 #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
87 cpumask_of_node(pcibus_to_node(bus)))