Lines Matching refs:freqs
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()
1757 struct cpufreq_freqs freqs; in cpufreq_out_of_sync() local
1762 freqs.old = policy->cur; in cpufreq_out_of_sync()
1763 freqs.new = new_freq; in cpufreq_out_of_sync()
1765 cpufreq_freq_transition_begin(policy, &freqs); in cpufreq_out_of_sync()
1766 cpufreq_freq_transition_end(policy, &freqs, 0); in cpufreq_out_of_sync()
2245 struct cpufreq_freqs *freqs, int index) in __target_intermediate() argument
2249 freqs->new = cpufreq_driver->get_intermediate(policy, index); in __target_intermediate()
2252 if (!freqs->new) in __target_intermediate()
2256 __func__, policy->cpu, freqs->old, freqs->new); in __target_intermediate()
2258 cpufreq_freq_transition_begin(policy, freqs); in __target_intermediate()
2260 cpufreq_freq_transition_end(policy, freqs, ret); in __target_intermediate()
2271 struct cpufreq_freqs freqs = {.old = policy->cur, .flags = 0}; in __target_index() local
2287 retval = __target_intermediate(policy, &freqs, index); in __target_index()
2291 intermediate_freq = freqs.new; in __target_index()
2294 freqs.old = freqs.new; in __target_index()
2297 freqs.new = newfreq; in __target_index()
2299 __func__, policy->cpu, freqs.old, freqs.new); in __target_index()
2301 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2310 cpufreq_freq_transition_end(policy, &freqs, retval); in __target_index()
2319 freqs.old = intermediate_freq; in __target_index()
2320 freqs.new = restore_freq; in __target_index()
2321 cpufreq_freq_transition_begin(policy, &freqs); in __target_index()
2322 cpufreq_freq_transition_end(policy, &freqs, 0); in __target_index()