Lines Matching refs:optimal
120 struct cpufreq_frequency_table optimal = { in cpufreq_table_index_unsorted() local
142 optimal.frequency = ~0; in cpufreq_table_index_unsorted()
152 optimal.driver_data = i; in cpufreq_table_index_unsorted()
158 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted()
159 optimal.frequency = freq; in cpufreq_table_index_unsorted()
160 optimal.driver_data = i; in cpufreq_table_index_unsorted()
171 if (freq <= optimal.frequency) { in cpufreq_table_index_unsorted()
172 optimal.frequency = freq; in cpufreq_table_index_unsorted()
173 optimal.driver_data = i; in cpufreq_table_index_unsorted()
184 if (diff < optimal.frequency || in cpufreq_table_index_unsorted()
185 (diff == optimal.frequency && in cpufreq_table_index_unsorted()
186 freq > table[optimal.driver_data].frequency)) { in cpufreq_table_index_unsorted()
187 optimal.frequency = diff; in cpufreq_table_index_unsorted()
188 optimal.driver_data = i; in cpufreq_table_index_unsorted()
193 if (optimal.driver_data > i) { in cpufreq_table_index_unsorted()
201 index = optimal.driver_data; in cpufreq_table_index_unsorted()