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 .parent = NULL, \ 9f15cbe6fSPaul Mundt .child = NULL, \ 10f15cbe6fSPaul Mundt .groups = NULL, \ 11f15cbe6fSPaul Mundt .min_interval = 8, \ 12f15cbe6fSPaul Mundt .max_interval = 32, \ 13f15cbe6fSPaul Mundt .busy_factor = 32, \ 14f15cbe6fSPaul Mundt .imbalance_pct = 125, \ 15f15cbe6fSPaul Mundt .cache_nice_tries = 2, \ 16f15cbe6fSPaul Mundt .busy_idx = 3, \ 17f15cbe6fSPaul Mundt .idle_idx = 2, \ 180ec9fab3SMike Galbraith .newidle_idx = 0, \ 1978e7ed53SPeter Zijlstra .wake_idx = 0, \ 20f15cbe6fSPaul Mundt .forkexec_idx = 1, \ 21f15cbe6fSPaul Mundt .flags = SD_LOAD_BALANCE \ 22f15cbe6fSPaul Mundt | SD_BALANCE_FORK \ 23f15cbe6fSPaul Mundt | SD_BALANCE_EXEC \ 24c88d5910SPeter Zijlstra | SD_BALANCE_WAKE \ 250ec9fab3SMike Galbraith | SD_BALANCE_NEWIDLE \ 26c88d5910SPeter Zijlstra | SD_SERIALIZE, \ 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 38f15cbe6fSPaul Mundt #define pcibus_to_node(bus) ((void)(bus), -1) 39b35346fdSPaul Mundt #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ 40b35346fdSPaul Mundt CPU_MASK_ALL_PTR : \ 41b35346fdSPaul Mundt cpumask_of_node(pcibus_to_node(bus))) 42b35346fdSPaul Mundt 43f15cbe6fSPaul Mundt #endif 44f15cbe6fSPaul Mundt 45f15cbe6fSPaul Mundt #include <asm-generic/topology.h> 46f15cbe6fSPaul Mundt 47f15cbe6fSPaul Mundt #endif /* _ASM_SH_TOPOLOGY_H */ 48