Lines Matching refs:freqs

344 				      struct cpufreq_freqs *freqs,  in cpufreq_notify_transition()  argument
354 freqs->policy = policy; in cpufreq_notify_transition()
355 freqs->flags = cpufreq_driver->flags; in cpufreq_notify_transition()
357 state, freqs->new); in cpufreq_notify_transition()
366 if (policy->cur && policy->cur != freqs->old) { in cpufreq_notify_transition()
368 freqs->old, policy->cur); in cpufreq_notify_transition()
369 freqs->old = policy->cur; in cpufreq_notify_transition()
373 CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
375 adjust_jiffies(CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
379 adjust_jiffies(CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
380 pr_debug("FREQ: %u - CPUs: %*pbl\n", freqs->new, in cpufreq_notify_transition()
384 trace_cpu_frequency(freqs->new, cpu); in cpufreq_notify_transition()
387 CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
389 cpufreq_stats_record_transition(policy, freqs->new); in cpufreq_notify_transition()
390 policy->cur = freqs->new; in cpufreq_notify_transition()
396 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_notify_post_transition() argument
398 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
402 swap(freqs->old, freqs->new); in cpufreq_notify_post_transition()
403 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_notify_post_transition()
404 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
408 struct cpufreq_freqs *freqs) in cpufreq_freq_transition_begin() argument
437 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_freq_transition_begin()
442 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_freq_transition_end() argument
447 cpufreq_notify_post_transition(policy, freqs, transition_failed); in cpufreq_freq_transition_end()
1660 struct cpufreq_freqs freqs; in cpufreq_out_of_sync() local
1665 freqs.old = policy->cur; in cpufreq_out_of_sync()
1666 freqs.new = new_freq; in cpufreq_out_of_sync()
1668 cpufreq_freq_transition_begin(policy, &freqs); in cpufreq_out_of_sync()
1669 cpufreq_freq_transition_end(policy, &freqs, 0); in cpufreq_out_of_sync()
2099 struct cpufreq_freqs *freqs, int index) in __target_intermediate() argument
2103 freqs->new = cpufreq_driver->get_intermediate(policy, index); in __target_intermediate()
2106 if (!freqs->new) in __target_intermediate()
2110 __func__, policy->cpu, freqs->old, freqs->new); in __target_intermediate()
2112 cpufreq_freq_transition_begin(policy, freqs); in __target_intermediate()
2114 cpufreq_freq_transition_end(policy, freqs, ret); in __target_intermediate()
2125 struct cpufreq_freqs freqs = {.old = policy->cur, .flags = 0}; in __target_index() local
2138 retval = __target_intermediate(policy, &freqs, index); in __target_index()
2142 intermediate_freq = freqs.new; in __target_index()
2145 freqs.old = freqs.new; in __target_index()
2148 freqs.new = newfreq; in __target_index()
2150 __func__, policy->cpu, freqs.old, freqs.new); in __target_index()
2152 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2161 cpufreq_freq_transition_end(policy, &freqs, retval); in __target_index()
2170 freqs.old = intermediate_freq; in __target_index()
2171 freqs.new = policy->restore_freq; in __target_index()
2172 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2173 cpufreq_freq_transition_end(policy, &freqs, 0); in __target_index()