Lines Matching refs:freqs

336 				      struct cpufreq_freqs *freqs,  in cpufreq_notify_transition()  argument
346 freqs->policy = policy; in cpufreq_notify_transition()
347 freqs->flags = cpufreq_driver->flags; in cpufreq_notify_transition()
349 state, freqs->new); in cpufreq_notify_transition()
358 if (policy->cur && policy->cur != freqs->old) { in cpufreq_notify_transition()
360 freqs->old, policy->cur); in cpufreq_notify_transition()
361 freqs->old = policy->cur; in cpufreq_notify_transition()
365 CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
367 adjust_jiffies(CPUFREQ_PRECHANGE, freqs); in cpufreq_notify_transition()
371 adjust_jiffies(CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
372 pr_debug("FREQ: %u - CPUs: %*pbl\n", freqs->new, in cpufreq_notify_transition()
376 trace_cpu_frequency(freqs->new, cpu); in cpufreq_notify_transition()
379 CPUFREQ_POSTCHANGE, freqs); in cpufreq_notify_transition()
381 cpufreq_stats_record_transition(policy, freqs->new); in cpufreq_notify_transition()
382 policy->cur = freqs->new; in cpufreq_notify_transition()
388 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_notify_post_transition() argument
390 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
394 swap(freqs->old, freqs->new); in cpufreq_notify_post_transition()
395 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_notify_post_transition()
396 cpufreq_notify_transition(policy, freqs, CPUFREQ_POSTCHANGE); in cpufreq_notify_post_transition()
400 struct cpufreq_freqs *freqs) in cpufreq_freq_transition_begin() argument
429 cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE); in cpufreq_freq_transition_begin()
434 struct cpufreq_freqs *freqs, int transition_failed) in cpufreq_freq_transition_end() argument
439 cpufreq_notify_post_transition(policy, freqs, transition_failed); in cpufreq_freq_transition_end()
1638 struct cpufreq_freqs freqs; in cpufreq_out_of_sync() local
1643 freqs.old = policy->cur; in cpufreq_out_of_sync()
1644 freqs.new = new_freq; in cpufreq_out_of_sync()
1646 cpufreq_freq_transition_begin(policy, &freqs); in cpufreq_out_of_sync()
1647 cpufreq_freq_transition_end(policy, &freqs, 0); in cpufreq_out_of_sync()
2028 struct cpufreq_freqs *freqs, int index) in __target_intermediate() argument
2032 freqs->new = cpufreq_driver->get_intermediate(policy, index); in __target_intermediate()
2035 if (!freqs->new) in __target_intermediate()
2039 __func__, policy->cpu, freqs->old, freqs->new); in __target_intermediate()
2041 cpufreq_freq_transition_begin(policy, freqs); in __target_intermediate()
2043 cpufreq_freq_transition_end(policy, freqs, ret); in __target_intermediate()
2054 struct cpufreq_freqs freqs = {.old = policy->cur, .flags = 0}; in __target_index() local
2067 retval = __target_intermediate(policy, &freqs, index); in __target_index()
2071 intermediate_freq = freqs.new; in __target_index()
2074 freqs.old = freqs.new; in __target_index()
2077 freqs.new = newfreq; in __target_index()
2079 __func__, policy->cpu, freqs.old, freqs.new); in __target_index()
2081 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2090 cpufreq_freq_transition_end(policy, &freqs, retval); in __target_index()
2099 freqs.old = intermediate_freq; in __target_index()
2100 freqs.new = policy->restore_freq; in __target_index()
2101 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2102 cpufreq_freq_transition_end(policy, &freqs, 0); in __target_index()