Lines Matching full:optimal
122 struct cpufreq_frequency_table optimal = { in cpufreq_table_index_unsorted() local
144 optimal.frequency = ~0; in cpufreq_table_index_unsorted()
154 optimal.driver_data = i; in cpufreq_table_index_unsorted()
160 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted()
161 optimal.frequency = freq; in cpufreq_table_index_unsorted()
162 optimal.driver_data = i; in cpufreq_table_index_unsorted()
173 if (freq <= optimal.frequency) { in cpufreq_table_index_unsorted()
174 optimal.frequency = freq; in cpufreq_table_index_unsorted()
175 optimal.driver_data = i; in cpufreq_table_index_unsorted()
186 if (diff < optimal.frequency || in cpufreq_table_index_unsorted()
187 (diff == optimal.frequency && in cpufreq_table_index_unsorted()
188 freq > table[optimal.driver_data].frequency)) { in cpufreq_table_index_unsorted()
189 optimal.frequency = diff; in cpufreq_table_index_unsorted()
190 optimal.driver_data = i; in cpufreq_table_index_unsorted()
195 if (optimal.driver_data > i) { in cpufreq_table_index_unsorted()
203 index = optimal.driver_data; in cpufreq_table_index_unsorted()