powernv-cpufreq.c (ffb1e76f4f32d2b8ea4189df0484980370476395) | powernv-cpufreq.c (1f39fa0dccff71d4788089b5e617229b19166867) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * POWERNV cpufreq driver for the IBM POWER processors 4 * 5 * (C) Copyright IBM 2014 6 * 7 * Author: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com> 8 */ --- 920 unchanged lines hidden (view full) --- 929 930 chip->restore = false; 931 for_each_cpu(cpu, &mask) { 932 int index; 933 934 policy = cpufreq_cpu_get(cpu); 935 if (!policy) 936 continue; | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * POWERNV cpufreq driver for the IBM POWER processors 4 * 5 * (C) Copyright IBM 2014 6 * 7 * Author: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com> 8 */ --- 920 unchanged lines hidden (view full) --- 929 930 chip->restore = false; 931 for_each_cpu(cpu, &mask) { 932 int index; 933 934 policy = cpufreq_cpu_get(cpu); 935 if (!policy) 936 continue; |
937 index = cpufreq_table_find_index_c(policy, policy->cur); | 937 index = cpufreq_table_find_index_c(policy, policy->cur, false); |
938 powernv_cpufreq_target_index(policy, index); 939 cpumask_andnot(&mask, &mask, policy->cpus); 940 cpufreq_cpu_put(policy); 941 } 942out: 943 cpus_read_unlock(); 944} 945 --- 71 unchanged lines hidden (view full) --- 1017}; 1018 1019static unsigned int powernv_fast_switch(struct cpufreq_policy *policy, 1020 unsigned int target_freq) 1021{ 1022 int index; 1023 struct powernv_smp_call_data freq_data; 1024 | 938 powernv_cpufreq_target_index(policy, index); 939 cpumask_andnot(&mask, &mask, policy->cpus); 940 cpufreq_cpu_put(policy); 941 } 942out: 943 cpus_read_unlock(); 944} 945 --- 71 unchanged lines hidden (view full) --- 1017}; 1018 1019static unsigned int powernv_fast_switch(struct cpufreq_policy *policy, 1020 unsigned int target_freq) 1021{ 1022 int index; 1023 struct powernv_smp_call_data freq_data; 1024 |
1025 index = cpufreq_table_find_index_dl(policy, target_freq); | 1025 index = cpufreq_table_find_index_dl(policy, target_freq, false); |
1026 freq_data.pstate_id = powernv_freqs[index].driver_data; 1027 freq_data.gpstate_id = powernv_freqs[index].driver_data; 1028 set_pstate(&freq_data); 1029 1030 return powernv_freqs[index].frequency; 1031} 1032 1033static struct cpufreq_driver powernv_cpufreq_driver = { --- 133 unchanged lines hidden --- | 1026 freq_data.pstate_id = powernv_freqs[index].driver_data; 1027 freq_data.gpstate_id = powernv_freqs[index].driver_data; 1028 set_pstate(&freq_data); 1029 1030 return powernv_freqs[index].frequency; 1031} 1032 1033static struct cpufreq_driver powernv_cpufreq_driver = { --- 133 unchanged lines hidden --- |