xref: /openbmc/linux/arch/sh/include/asm/topology.h (revision ece15787)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2f15cbe6fSPaul Mundt #ifndef _ASM_SH_TOPOLOGY_H
3f15cbe6fSPaul Mundt #define _ASM_SH_TOPOLOGY_H
4f15cbe6fSPaul Mundt 
5f15cbe6fSPaul Mundt #ifdef CONFIG_NUMA
6f15cbe6fSPaul Mundt 
7f15cbe6fSPaul Mundt #define cpu_to_node(cpu)	((void)(cpu),0)
8f15cbe6fSPaul Mundt 
97479a293SRusty Russell #define cpumask_of_node(node)	((void)node, cpu_online_mask)
10f15cbe6fSPaul Mundt 
11f15cbe6fSPaul Mundt #define pcibus_to_node(bus)	((void)(bus), -1)
12b35346fdSPaul Mundt #define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ? \
1394316cdaSPaul Mundt 					cpu_all_mask : \
14b35346fdSPaul Mundt 					cpumask_of_node(pcibus_to_node(bus)))
15b35346fdSPaul Mundt 
16f15cbe6fSPaul Mundt #endif
17f15cbe6fSPaul Mundt 
18896f0c0eSPaul Mundt #define mc_capable()    (1)
19896f0c0eSPaul Mundt 
20ccc7d5a1SRich Felker const struct cpumask *cpu_coregroup_mask(int cpu);
21896f0c0eSPaul Mundt 
22896f0c0eSPaul Mundt extern cpumask_t cpu_core_map[NR_CPUS];
23896f0c0eSPaul Mundt 
24896f0c0eSPaul Mundt #define topology_core_cpumask(cpu)	(&cpu_core_map[cpu])
25896f0c0eSPaul Mundt 
26f15cbe6fSPaul Mundt #include <asm-generic/topology.h>
27f15cbe6fSPaul Mundt 
28f15cbe6fSPaul Mundt #endif /* _ASM_SH_TOPOLOGY_H */
29