Searched refs:cpu_policy (Results 1 – 2 of 2) sorted by relevance
897 struct cpufreq_policy *cpu_policy; in powernv_cpufreq_reboot_notifier() local901 cpu_policy = cpufreq_cpu_get(cpu); in powernv_cpufreq_reboot_notifier()902 if (!cpu_policy) in powernv_cpufreq_reboot_notifier()904 powernv_cpufreq_target_index(cpu_policy, get_nominal_index()); in powernv_cpufreq_reboot_notifier()905 cpufreq_cpu_put(cpu_policy); in powernv_cpufreq_reboot_notifier()
2551 struct cpufreq_policy *cpu_policy; in cpufreq_get_policy() local2555 cpu_policy = cpufreq_cpu_get(cpu); in cpufreq_get_policy()2556 if (!cpu_policy) in cpufreq_get_policy()2559 memcpy(policy, cpu_policy, sizeof(*policy)); in cpufreq_get_policy()2561 cpufreq_cpu_put(cpu_policy); in cpufreq_get_policy()