topology.h (800f65bba8d2030b3fef62850e203f9f176625a8) | topology.h (559e2b7ee7a1c7753d534abcb2742a4775339293) |
---|---|
1#ifndef _ASM_POWERPC_TOPOLOGY_H 2#define _ASM_POWERPC_TOPOLOGY_H 3#ifdef __KERNEL__ 4 5 6struct sys_device; 7struct device_node; 8 --- 27 unchanged lines hidden (view full) --- 36} 37 38#define parent_node(node) (node) 39 40#define cpumask_of_node(node) ((node) == -1 ? \ 41 cpu_all_mask : \ 42 node_to_cpumask_map[node]) 43 | 1#ifndef _ASM_POWERPC_TOPOLOGY_H 2#define _ASM_POWERPC_TOPOLOGY_H 3#ifdef __KERNEL__ 4 5 6struct sys_device; 7struct device_node; 8 --- 27 unchanged lines hidden (view full) --- 36} 37 38#define parent_node(node) (node) 39 40#define cpumask_of_node(node) ((node) == -1 ? \ 41 cpu_all_mask : \ 42 node_to_cpumask_map[node]) 43 |
44int of_node_to_nid(struct device_node *device); 45 | |
46struct pci_bus; 47#ifdef CONFIG_PCI 48extern int pcibus_to_node(struct pci_bus *bus); 49#else 50static inline int pcibus_to_node(struct pci_bus *bus) 51{ 52 return -1; 53} --- 35 unchanged lines hidden (view full) --- 89 90extern void __init dump_numa_cpu_topology(void); 91 92extern int sysfs_add_device_to_node(struct sys_device *dev, int nid); 93extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid); 94 95#else 96 | 44struct pci_bus; 45#ifdef CONFIG_PCI 46extern int pcibus_to_node(struct pci_bus *bus); 47#else 48static inline int pcibus_to_node(struct pci_bus *bus) 49{ 50 return -1; 51} --- 35 unchanged lines hidden (view full) --- 87 88extern void __init dump_numa_cpu_topology(void); 89 90extern int sysfs_add_device_to_node(struct sys_device *dev, int nid); 91extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid); 92 93#else 94 |
97static inline int of_node_to_nid(struct device_node *device) 98{ 99 return 0; 100} 101 | |
102static inline void dump_numa_cpu_topology(void) {} 103 104static inline int sysfs_add_device_to_node(struct sys_device *dev, int nid) 105{ 106 return 0; 107} 108 109static inline void sysfs_remove_device_from_node(struct sys_device *dev, --- 23 unchanged lines hidden --- | 95static inline void dump_numa_cpu_topology(void) {} 96 97static inline int sysfs_add_device_to_node(struct sys_device *dev, int nid) 98{ 99 return 0; 100} 101 102static inline void sysfs_remove_device_from_node(struct sys_device *dev, --- 23 unchanged lines hidden --- |