1 #ifndef _ASM_POWERPC_CPUTHREADS_H
2 #define _ASM_POWERPC_CPUTHREADS_H
24 #define threads_per_core 1
25 #define threads_shift 0
26 #define threads_core_mask (CPU_MASK_CPU0)
47 cpumask_shift_left(&tmp, &threads_core_mask, i);
48 if (cpumask_intersects(threads, &tmp))
49 cpumask_set_cpu(i, &res);
54 static inline int cpu_nr_cores(
void)
59 static inline cpumask_t cpu_online_cores_map(
void)
61 return cpu_thread_mask_to_cores(cpu_online_mask);
72 static inline int cpu_thread_in_core(
int cpu)
77 static inline int cpu_first_thread_sibling(
int cpu)
82 static inline int cpu_last_thread_sibling(
int cpu)