Lines Matching refs:optimal
126 struct cpufreq_frequency_table optimal = { in cpufreq_frequency_table_target() local
146 optimal.frequency = ~0; in cpufreq_frequency_table_target()
157 optimal.driver_data = i; in cpufreq_frequency_table_target()
163 if (freq >= optimal.frequency) { in cpufreq_frequency_table_target()
164 optimal.frequency = freq; in cpufreq_frequency_table_target()
165 optimal.driver_data = i; in cpufreq_frequency_table_target()
176 if (freq <= optimal.frequency) { in cpufreq_frequency_table_target()
177 optimal.frequency = freq; in cpufreq_frequency_table_target()
178 optimal.driver_data = i; in cpufreq_frequency_table_target()
189 if (diff < optimal.frequency || in cpufreq_frequency_table_target()
190 (diff == optimal.frequency && in cpufreq_frequency_table_target()
191 freq > table[optimal.driver_data].frequency)) { in cpufreq_frequency_table_target()
192 optimal.frequency = diff; in cpufreq_frequency_table_target()
193 optimal.driver_data = i; in cpufreq_frequency_table_target()
198 if (optimal.driver_data > i) { in cpufreq_frequency_table_target()
203 *index = optimal.driver_data; in cpufreq_frequency_table_target()