18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_SH_TOPOLOGY_H
38c2ecf20Sopenharmony_ci#define _ASM_SH_TOPOLOGY_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifdef CONFIG_NUMA
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define cpu_to_node(cpu)	((void)(cpu),0)
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define cpumask_of_node(node)	((void)node, cpu_online_mask)
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define pcibus_to_node(bus)	((void)(bus), -1)
128c2ecf20Sopenharmony_ci#define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ? \
138c2ecf20Sopenharmony_ci					cpu_all_mask : \
148c2ecf20Sopenharmony_ci					cpumask_of_node(pcibus_to_node(bus)))
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#endif
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#define mc_capable()    (1)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciconst struct cpumask *cpu_coregroup_mask(int cpu);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciextern cpumask_t cpu_core_map[NR_CPUS];
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define topology_core_cpumask(cpu)	(&cpu_core_map[cpu])
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#include <asm-generic/topology.h>
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif /* _ASM_SH_TOPOLOGY_H */
29