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, \ 20b8a543eaSPeter Zijlstra .forkexec_idx = 0, \ 21f15cbe6fSPaul Mundt .flags = SD_LOAD_BALANCE \ 22f15cbe6fSPaul Mundt | SD_BALANCE_FORK \ 23f15cbe6fSPaul Mundt | SD_BALANCE_EXEC \ 240ec9fab3SMike Galbraith | SD_BALANCE_NEWIDLE \ 25c88d5910SPeter Zijlstra | SD_SERIALIZE, \ 26f15cbe6fSPaul Mundt .last_balance = jiffies, \ 27f15cbe6fSPaul Mundt .balance_interval = 1, \ 28f15cbe6fSPaul Mundt .nr_balance_failed = 0, \ 29f15cbe6fSPaul Mundt } 30f15cbe6fSPaul Mundt 31f15cbe6fSPaul Mundt #define cpu_to_node(cpu) ((void)(cpu),0) 32f15cbe6fSPaul Mundt #define parent_node(node) ((void)(node),0) 33f15cbe6fSPaul Mundt 347479a293SRusty Russell #define cpumask_of_node(node) ((void)node, cpu_online_mask) 35f15cbe6fSPaul Mundt 36f15cbe6fSPaul Mundt #define pcibus_to_node(bus) ((void)(bus), -1) 37b35346fdSPaul Mundt #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ 3894316cdaSPaul Mundt cpu_all_mask : \ 39b35346fdSPaul Mundt cpumask_of_node(pcibus_to_node(bus))) 40b35346fdSPaul Mundt 41f15cbe6fSPaul Mundt #endif 42f15cbe6fSPaul Mundt 43896f0c0eSPaul Mundt #define mc_capable() (1) 44896f0c0eSPaul Mundt 45896f0c0eSPaul Mundt const struct cpumask *cpu_coregroup_mask(unsigned int cpu); 46896f0c0eSPaul Mundt 47896f0c0eSPaul Mundt extern cpumask_t cpu_core_map[NR_CPUS]; 48896f0c0eSPaul Mundt 49896f0c0eSPaul Mundt #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) 50896f0c0eSPaul Mundt 51f15cbe6fSPaul Mundt #include <asm-generic/topology.h> 52f15cbe6fSPaul Mundt 53f15cbe6fSPaul Mundt #endif /* _ASM_SH_TOPOLOGY_H */ 54