Lines Matching refs:cpu_count
203 int i = 0, cpu_count;
208 cpu_count = cpumask_weight(hfi_instance->cpus);
211 if (!cpu_count)
214 cpu_caps = kcalloc(cpu_count, sizeof(*cpu_caps), GFP_KERNEL);
220 if (cpu_count < HFI_MAX_THERM_NOTIFY_COUNT)
225 (i + HFI_MAX_THERM_NOTIFY_COUNT) <= cpu_count;
230 cpu_count = cpu_count - i;
234 if (cpu_count)
235 thermal_genl_cpu_capability_event(cpu_count, &cpu_caps[i]);