treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / mach-loongson64 / topology.h
blob3414a1fd17835efc3894d36a8c05e09054bc8a44
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)
9 extern cpumask_t __node_cpumask[];
10 #define cpumask_of_node(node) (&__node_cpumask[node])
12 struct pci_bus;
13 extern int pcibus_to_node(struct pci_bus *);
15 #define cpumask_of_pcibus(bus) (cpu_online_mask)
17 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
19 #define node_distance(from, to) (__node_distances[(from)][(to)])
21 #endif
23 #include <asm-generic/topology.h>
25 #endif /* _ASM_MACH_TOPOLOGY_H */