blob: b0a282d65f6a16bc0753faac736e67adc00f62e7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_SH_TOPOLOGY_H
2#define _ASM_SH_TOPOLOGY_H
3
Paul Mundtb241cb02007-06-06 17:52:19 +09004#ifdef CONFIG_NUMA
5
Paul Mundt1e0f50a2008-05-08 13:40:17 +09006#define cpu_to_node(cpu) ((void)(cpu),0)
7#define parent_node(node) ((void)(node),0)
8
Rusty Russell7479a292008-12-26 22:23:39 +10309#define cpumask_of_node(node) ((void)node, cpu_online_mask)
Paul Mundt1e0f50a2008-05-08 13:40:17 +090010
11#define pcibus_to_node(bus) ((void)(bus), -1)
Paul Mundtb35346f2009-04-07 17:11:15 -070012#define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
Paul Mundt94316cd2010-03-02 15:54:47 +090013 cpu_all_mask : \
Paul Mundtb35346f2009-04-07 17:11:15 -070014 cpumask_of_node(pcibus_to_node(bus)))
15
Paul Mundtb241cb02007-06-06 17:52:19 +090016#endif
17
Paul Mundt896f0c02009-10-16 18:00:02 +090018#define mc_capable() (1)
19
20const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
21
22extern cpumask_t cpu_core_map[NR_CPUS];
23
24#define topology_core_cpumask(cpu) (&cpu_core_map[cpu])
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#include <asm-generic/topology.h>
27
28#endif /* _ASM_SH_TOPOLOGY_H */