Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_SH_TOPOLOGY_H |
| 2 | #define _ASM_SH_TOPOLOGY_H |
| 3 | |
Paul Mundt | b241cb0 | 2007-06-06 17:52:19 +0900 | [diff] [blame] | 4 | #ifdef CONFIG_NUMA |
| 5 | |
Paul Mundt | 1e0f50a | 2008-05-08 13:40:17 +0900 | [diff] [blame] | 6 | #define cpu_to_node(cpu) ((void)(cpu),0) |
| 7 | #define parent_node(node) ((void)(node),0) |
| 8 | |
Rusty Russell | 7479a29 | 2008-12-26 22:23:39 +1030 | [diff] [blame] | 9 | #define cpumask_of_node(node) ((void)node, cpu_online_mask) |
Paul Mundt | 1e0f50a | 2008-05-08 13:40:17 +0900 | [diff] [blame] | 10 | |
| 11 | #define pcibus_to_node(bus) ((void)(bus), -1) |
Paul Mundt | b35346f | 2009-04-07 17:11:15 -0700 | [diff] [blame] | 12 | #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ |
Paul Mundt | 94316cd | 2010-03-02 15:54:47 +0900 | [diff] [blame] | 13 | cpu_all_mask : \ |
Paul Mundt | b35346f | 2009-04-07 17:11:15 -0700 | [diff] [blame] | 14 | cpumask_of_node(pcibus_to_node(bus))) |
| 15 | |
Paul Mundt | b241cb0 | 2007-06-06 17:52:19 +0900 | [diff] [blame] | 16 | #endif |
| 17 | |
Paul Mundt | 896f0c0 | 2009-10-16 18:00:02 +0900 | [diff] [blame] | 18 | #define mc_capable() (1) |
| 19 | |
| 20 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); |
| 21 | |
| 22 | extern cpumask_t cpu_core_map[NR_CPUS]; |
| 23 | |
| 24 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #include <asm-generic/topology.h> |
| 27 | |
| 28 | #endif /* _ASM_SH_TOPOLOGY_H */ |