Lines Matching defs:cpu
48 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node)
50 numa_cpu_lookup_table[cpu] = node;
53 static inline int early_cpu_to_node(int cpu)
57 nid = numa_cpu_lookup_table[cpu];
61 * This allows callers to safely do NODE_DATA(early_cpu_to_node(cpu)).
69 extern void map_cpu_to_node(int cpu, int node);
71 extern void unmap_cpu_from_node(unsigned long cpu);
76 static inline int early_cpu_to_node(int cpu) { return 0; }
90 static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {}
105 static inline void map_cpu_to_node(int cpu, int node) {}
107 static inline void unmap_cpu_from_node(unsigned long cpu) {}
114 void find_and_update_cpu_nid(int cpu);
115 extern int cpu_to_coregroup_id(int cpu);
117 static inline void find_and_update_cpu_nid(int cpu) {}
118 static inline int cpu_to_coregroup_id(int cpu)
121 return cpu_to_core_id(cpu);
137 #define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu))
139 #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu))
140 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu))
141 #define topology_core_id(cpu) (cpu_to_core_id(cpu))
151 static inline bool topology_is_primary_thread(unsigned int cpu)
153 return cpu == cpu_first_thread_sibling(cpu);
157 static inline bool topology_smt_thread_allowed(unsigned int cpu)
159 return cpu_thread_in_core(cpu) < cpu_smt_num_threads;
163 static inline bool topology_is_core_online(unsigned int cpu)
165 int i, first_cpu = cpu_first_thread_sibling(cpu);