Lines Matching refs:cmsk
58 struct cpumask *cmsk = per_cpu(cluster_masks, cpu); in __x2apic_send_IPI_mask() local
61 for_each_cpu_and(clustercpu, tmpmsk, cmsk) in __x2apic_send_IPI_mask()
69 cpumask_andnot(tmpmsk, tmpmsk, cmsk); in __x2apic_send_IPI_mask()
93 struct cpumask *cmsk = this_cpu_read(cluster_masks); in init_x2apic_ldr() local
95 BUG_ON(!cmsk); in init_x2apic_ldr()
97 cpumask_set_cpu(smp_processor_id(), cmsk); in init_x2apic_ldr()
105 static void prefill_clustermask(struct cpumask *cmsk, unsigned int cpu, u32 cluster) in prefill_clustermask() argument
116 if (WARN_ON_ONCE(*cpu_cmsk == cmsk)) in prefill_clustermask()
120 *cpu_cmsk = cmsk; in prefill_clustermask()
126 struct cpumask *cmsk = NULL; in alloc_clustermask() local
150 cmsk = per_cpu(cluster_masks, cpu_i); in alloc_clustermask()
155 if (cmsk) { in alloc_clustermask()
156 per_cpu(cluster_masks, cpu) = cmsk; in alloc_clustermask()
167 cmsk = kzalloc_node(sizeof(*cmsk), GFP_KERNEL, node); in alloc_clustermask()
168 if (!cmsk) in alloc_clustermask()
170 per_cpu(cluster_masks, cpu) = cmsk; in alloc_clustermask()
171 prefill_clustermask(cmsk, cpu, cluster); in alloc_clustermask()
196 struct cpumask *cmsk = per_cpu(cluster_masks, dead_cpu); in x2apic_dead_cpu() local
198 if (cmsk) in x2apic_dead_cpu()
199 cpumask_clear_cpu(dead_cpu, cmsk); in x2apic_dead_cpu()