Lines Matching +full:8 +full:- +full:cpu
1 /* SPDX-License-Identifier: GPL-2.0 */
15 * as the CPU numbers are still allocated, just not brought online).
35 /* cpu_thread_mask_to_cores - Return a cpumask of one per cores
40 * This function returns a cpumask which will have one online cpu's
49 int i, cpu; in cpu_thread_mask_to_cores() local
55 cpu = cpumask_next_and(-1, &tmp, cpu_online_mask); in cpu_thread_mask_to_cores()
56 if (cpu < nr_cpu_ids) in cpu_thread_mask_to_cores()
57 cpumask_set_cpu(cpu, &res); in cpu_thread_mask_to_cores()
74 int cpu_core_index_of_thread(int cpu);
77 static inline int cpu_core_index_of_thread(int cpu) { return cpu; } in cpu_core_index_of_thread() argument
81 static inline int cpu_thread_in_core(int cpu) in cpu_thread_in_core() argument
83 return cpu & (threads_per_core - 1); in cpu_thread_in_core()
86 static inline int cpu_thread_in_subcore(int cpu) in cpu_thread_in_subcore() argument
88 return cpu & (threads_per_subcore - 1); in cpu_thread_in_subcore()
91 static inline int cpu_first_thread_sibling(int cpu) in cpu_first_thread_sibling() argument
93 return cpu & ~(threads_per_core - 1); in cpu_first_thread_sibling()
96 static inline int cpu_last_thread_sibling(int cpu) in cpu_last_thread_sibling() argument
98 return cpu | (threads_per_core - 1); in cpu_last_thread_sibling()
104 * CPU may change behaviour even in compat mode, so this should only be
107 static inline int cpu_first_tlb_thread_sibling(int cpu) in cpu_first_tlb_thread_sibling() argument
109 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_first_tlb_thread_sibling()
110 return cpu & ~0x6; /* Big Core */ in cpu_first_tlb_thread_sibling()
112 return cpu_first_thread_sibling(cpu); in cpu_first_tlb_thread_sibling()
115 static inline int cpu_last_tlb_thread_sibling(int cpu) in cpu_last_tlb_thread_sibling() argument
117 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_last_tlb_thread_sibling()
118 return cpu | 0x6; /* Big Core */ in cpu_last_tlb_thread_sibling()
120 return cpu_last_thread_sibling(cpu); in cpu_last_tlb_thread_sibling()
125 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_tlb_thread_sibling_step()