Lines Matching refs:cpu_new
153 struct s3c_cpufreq_config cpu_new;
156 cpu_new = cpu_cur; /* copy new from current */
162 cpu_new.pll = pll ? *pll : cpu_cur.pll;
169 cpu_new.freq.armclk = target_freq;
170 cpu_new.freq.fclk = cpu_new.pll.frequency;
172 if (s3c_cpufreq_calcdivs(&cpu_new) < 0) {
179 s3c_cpufreq_calc(&cpu_new);
183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) {
184 if (s3c_cpufreq_calcio(&cpu_new) < 0) {
190 s3c_cpufreq_show("new", &cpu_new);
195 freqs.new = cpu_new.freq;
198 freqs.freqs.new = cpu_new.freq.armclk / 1000;
204 s3c_cpufreq_updateclk(_clk_mpll, cpu_new.pll.frequency);
205 s3c_cpufreq_updateclk(clk_fclk, cpu_new.freq.fclk);
206 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk);
207 s3c_cpufreq_updateclk(clk_pclk, cpu_new.freq.pclk);
219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) {
220 s3c_cpufreq_setrefresh(&cpu_new);
221 s3c_cpufreq_setio(&cpu_new);
224 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) {
227 s3c_cpufreq_setdivs(&cpu_new);
229 if (cpu_new.freq.fclk < cpu_cur.freq.fclk) {
232 s3c_cpufreq_setfvco(&cpu_new);
233 s3c_cpufreq_setdivs(&cpu_new);
237 s3c_cpufreq_setdivs(&cpu_new);
238 s3c_cpufreq_setfvco(&cpu_new);
243 if (cpu_new.freq.hclk > cpu_cur.freq.hclk) {
244 s3c_cpufreq_setrefresh(&cpu_new);
245 s3c_cpufreq_setio(&cpu_new);
249 cpu_cur = cpu_new;