/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_MACH_TOPOLOGY_H #define _ASM_MACH_TOPOLOGY_H #ifdef CONFIG_NUMA #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) #define cpumask_of_node(node) (&__node_data[(node)]->cpumask) struct pci_bus; extern int pcibus_to_node(struct pci_bus *); #define cpumask_of_pcibus(bus) (cpu_online_mask) extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES]; #define node_distance(from, to) (__node_distances[(from)][(to)]) #endif #include <asm-generic/topology.h> #endif /* _ASM_MACH_TOPOLOGY_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cs5536 | Folder | 0755 |
|
|
boot_param.h | File | 5.72 KB | 0644 |
|
cpu-feature-overrides.h | File | 1.54 KB | 0644 |
|
dma-coherence.h | File | 2.14 KB | 0644 |
|
irq.h | File | 1.64 KB | 0644 |
|
kernel-entry-init.h | File | 1.43 KB | 0644 |
|
loongson.h | File | 12.43 KB | 0644 |
|
loongson_hwmon.h | File | 1.25 KB | 0644 |
|
machine.h | File | 816 B | 0644 |
|
mc146818rtc.h | File | 919 B | 0644 |
|
mem.h | File | 1.04 KB | 0644 |
|
mmzone.h | File | 1.52 KB | 0644 |
|
pci.h | File | 1.73 KB | 0644 |
|
spaces.h | File | 269 B | 0644 |
|
topology.h | File | 557 B | 0644 |
|
workarounds.h | File | 217 B | 0644 |
|