1f15cbe6fSPaul Mundt #ifndef _ASM_SH_TOPOLOGY_H 2f15cbe6fSPaul Mundt #define _ASM_SH_TOPOLOGY_H 3f15cbe6fSPaul Mundt 4f15cbe6fSPaul Mundt #ifdef CONFIG_NUMA 5f15cbe6fSPaul Mundt 6f15cbe6fSPaul Mundt /* sched_domains SD_NODE_INIT for sh machines */ 7f15cbe6fSPaul Mundt #define SD_NODE_INIT (struct sched_domain) { \ 8f15cbe6fSPaul Mundt .span = CPU_MASK_NONE, \ 9f15cbe6fSPaul Mundt .parent = NULL, \ 10f15cbe6fSPaul Mundt .child = NULL, \ 11f15cbe6fSPaul Mundt .groups = NULL, \ 12f15cbe6fSPaul Mundt .min_interval = 8, \ 13f15cbe6fSPaul Mundt .max_interval = 32, \ 14f15cbe6fSPaul Mundt .busy_factor = 32, \ 15f15cbe6fSPaul Mundt .imbalance_pct = 125, \ 16f15cbe6fSPaul Mundt .cache_nice_tries = 2, \ 17f15cbe6fSPaul Mundt .busy_idx = 3, \ 18f15cbe6fSPaul Mundt .idle_idx = 2, \ 19f15cbe6fSPaul Mundt .newidle_idx = 2, \ 20f15cbe6fSPaul Mundt .wake_idx = 1, \ 21f15cbe6fSPaul Mundt .forkexec_idx = 1, \ 22f15cbe6fSPaul Mundt .flags = SD_LOAD_BALANCE \ 23f15cbe6fSPaul Mundt | SD_BALANCE_FORK \ 24f15cbe6fSPaul Mundt | SD_BALANCE_EXEC \ 25f15cbe6fSPaul Mundt | SD_SERIALIZE \ 26f15cbe6fSPaul Mundt | SD_WAKE_BALANCE, \ 27f15cbe6fSPaul Mundt .last_balance = jiffies, \ 28f15cbe6fSPaul Mundt .balance_interval = 1, \ 29f15cbe6fSPaul Mundt .nr_balance_failed = 0, \ 30f15cbe6fSPaul Mundt } 31f15cbe6fSPaul Mundt 32f15cbe6fSPaul Mundt #define cpu_to_node(cpu) ((void)(cpu),0) 33f15cbe6fSPaul Mundt #define parent_node(node) ((void)(node),0) 34f15cbe6fSPaul Mundt 35f15cbe6fSPaul Mundt #define node_to_cpumask(node) ((void)node, cpu_online_map) 367479a293SRusty Russell #define cpumask_of_node(node) ((void)node, cpu_online_mask) 37f15cbe6fSPaul Mundt #define node_to_first_cpu(node) ((void)(node),0) 38f15cbe6fSPaul Mundt 39f15cbe6fSPaul Mundt #define pcibus_to_node(bus) ((void)(bus), -1) 40f15cbe6fSPaul Mundt #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ 41f15cbe6fSPaul Mundt CPU_MASK_ALL : \ 42f15cbe6fSPaul Mundt node_to_cpumask(pcibus_to_node(bus)) \ 43f15cbe6fSPaul Mundt ) 44f15cbe6fSPaul Mundt #endif 45f15cbe6fSPaul Mundt 46f15cbe6fSPaul Mundt #include <asm-generic/topology.h> 47f15cbe6fSPaul Mundt 48f15cbe6fSPaul Mundt #endif /* _ASM_SH_TOPOLOGY_H */ 49