xref: /OK3568_Linux_fs/kernel/arch/sh/include/asm/topology.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_SH_TOPOLOGY_H
3*4882a593Smuzhiyun #define _ASM_SH_TOPOLOGY_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifdef CONFIG_NUMA
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #define cpu_to_node(cpu)	((void)(cpu),0)
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #define cpumask_of_node(node)	((void)node, cpu_online_mask)
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #define pcibus_to_node(bus)	((void)(bus), -1)
12*4882a593Smuzhiyun #define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ? \
13*4882a593Smuzhiyun 					cpu_all_mask : \
14*4882a593Smuzhiyun 					cpumask_of_node(pcibus_to_node(bus)))
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #define mc_capable()    (1)
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun const struct cpumask *cpu_coregroup_mask(int cpu);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun extern cpumask_t cpu_core_map[NR_CPUS];
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #define topology_core_cpumask(cpu)	(&cpu_core_map[cpu])
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #include <asm-generic/topology.h>
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* _ASM_SH_TOPOLOGY_H */
29