Lines Matching full:freqs
342 * @freqs: contain details of the frequency update.
350 struct cpufreq_freqs *freqs, in cpufreq_notify_transition() argument
360 freqs->policy = policy; in cpufreq_notify_transition()
361 freqs->flags = cpufreq_driver->flags; in cpufreq_notify_transition()
363 state, freqs->new); in cpufreq_notify_transition()
372 if (policy->cur && policy->cur != freqs->old) { in cpufreq_notify_transition()
374 freqs->old, policy->cur); in cpufreq_notify_transition()
375 freqs->old = policy->cur; in cpufreq_notify_transition()
379 CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
381 adjust_jiffies(CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
385 adjust_jiffies(CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
386 pr_debug("FREQ: %u - CPUs: %*pbl\n", freqs->new, in cpufreq_notify_transition()
390 trace_cpu_frequency(freqs->new, cpu); in cpufreq_notify_transition()
393 CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
395 cpufreq_stats_record_transition(policy, freqs->new); in cpufreq_notify_transition()
396 policy->cur = freqs->new; in cpufreq_notify_transition()
402 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_notify_post_transition() argument
404 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
408 swap(freqs->old, freqs->new); in cpufreq_notify_post_transition()
409 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_notify_post_transition()
410 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
414 struct cpufreq_freqs *freqs) in cpufreq_freq_transition_begin() argument
443 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_freq_transition_begin()
448 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_freq_transition_end() argument
453 cpufreq_notify_post_transition(policy, freqs, transition_failed); in cpufreq_freq_transition_end()
1745 struct cpufreq_freqs freqs; in cpufreq_out_of_sync() local
1750 freqs.old = policy->cur; in cpufreq_out_of_sync()
1751 freqs.new = new_freq; in cpufreq_out_of_sync()
1753 cpufreq_freq_transition_begin(policy, &freqs); in cpufreq_out_of_sync()
1754 cpufreq_freq_transition_end(policy, &freqs, 0); in cpufreq_out_of_sync()
2231 /* Must set freqs->new to intermediate frequency */
2233 struct cpufreq_freqs *freqs, int index) in __target_intermediate() argument
2237 freqs->new = cpufreq_driver->get_intermediate(policy, index); in __target_intermediate()
2240 if (!freqs->new) in __target_intermediate()
2244 __func__, policy->cpu, freqs->old, freqs->new); in __target_intermediate()
2246 cpufreq_freq_transition_begin(policy, freqs); in __target_intermediate()
2248 cpufreq_freq_transition_end(policy, freqs, ret); in __target_intermediate()
2259 struct cpufreq_freqs freqs = {.old = policy->cur, .flags = 0}; in __target_index() local
2275 retval = __target_intermediate(policy, &freqs, index); in __target_index()
2279 intermediate_freq = freqs.new; in __target_index()
2282 freqs.old = freqs.new; in __target_index()
2285 freqs.new = newfreq; in __target_index()
2287 __func__, policy->cpu, freqs.old, freqs.new); in __target_index()
2289 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2298 cpufreq_freq_transition_end(policy, &freqs, retval); in __target_index()
2307 freqs.old = intermediate_freq; in __target_index()
2308 freqs.new = restore_freq; in __target_index()
2309 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2310 cpufreq_freq_transition_end(policy, &freqs, 0); in __target_index()
2661 pr_debug("new min and max freqs are %u - %u kHz\n", in cpufreq_set_policy()