Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / include / asm / mach-loongson64 / topology.h
blob7ff819ab308af32183a9c70dc383d83d278704ac
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_MACH_TOPOLOGY_H
3 #define _ASM_MACH_TOPOLOGY_H
5 #ifdef CONFIG_NUMA
7 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
8 #define cpumask_of_node(node) (&__node_data[(node)]->cpumask)
10 struct pci_bus;
11 extern int pcibus_to_node(struct pci_bus *);
13 #define cpumask_of_pcibus(bus) (cpu_online_mask)
15 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
17 #define node_distance(from, to) (__node_distances[(from)][(to)])
19 #endif
21 #include <asm-generic/topology.h>
23 #endif /* _ASM_MACH_TOPOLOGY_H */