Lines Matching refs:chips
123 } *chips; variable
864 chips[i].restore = true; in powernv_cpufreq_occ_msg()
865 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg()
872 if (chips[i].id == omsg.chip) in powernv_cpufreq_occ_msg()
877 chips[i].throttle_reason = omsg.throttle_status; in powernv_cpufreq_occ_msg()
878 chips[i].reason[omsg.throttle_status]++; in powernv_cpufreq_occ_msg()
882 chips[i].restore = true; in powernv_cpufreq_occ_msg()
884 schedule_work(&chips[i].throttle); in powernv_cpufreq_occ_msg()
933 chips = kcalloc(nr_chips, sizeof(struct chip), GFP_KERNEL); in init_chip_info()
934 if (!chips) in init_chip_info()
938 chips[i].id = chip[i]; in init_chip_info()
939 cpumask_copy(&chips[i].mask, cpumask_of_node(chip[i])); in init_chip_info()
940 INIT_WORK(&chips[i].throttle, powernv_cpufreq_work_fn); in init_chip_info()
941 for_each_cpu(cpu, &chips[i].mask) in init_chip_info()
942 per_cpu(chip_info, cpu) = &chips[i]; in init_chip_info()
950 kfree(chips); in clean_chip_info()