Lines Matching refs:cpu_cur

32 static struct s3c_cpufreq_config cpu_cur;  variable
49 return &cpu_cur; in s3c_cpufreq_getconfig()
156 cpu_new = cpu_cur; /* copy new from current */ in s3c_cpufreq_settarget()
158 s3c_cpufreq_show("cur", &cpu_cur); in s3c_cpufreq_settarget()
162 cpu_new.pll = pll ? *pll : cpu_cur.pll; in s3c_cpufreq_settarget()
183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
194 freqs.old = cpu_cur.freq; in s3c_cpufreq_settarget()
197 freqs.freqs.old = cpu_cur.freq.armclk / 1000; in s3c_cpufreq_settarget()
219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
224 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
229 if (cpu_new.freq.fclk < cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
243 if (cpu_new.freq.hclk > cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
249 cpu_cur = cpu_new; in s3c_cpufreq_settarget()
301 if (!pll_reg || cpu_cur.lock_pll) { in s3c_cpufreq_target()
347 policy->cpuinfo.transition_latency = cpu_cur.info->latency; in s3c_cpufreq_init()
452 cpu_cur.info = info; in s3c_cpufreq_register()
476 cpu_cur.board = ours; in s3c_cpufreq_setboard()
485 if (!cpu_cur.info->get_iotiming) { in s3c_cpufreq_auto_io()
492 ret = (cpu_cur.info->get_iotiming)(&cpu_cur, &s3c24xx_iotiming); in s3c_cpufreq_auto_io()
533 unsigned int bits = cpu_cur.info->locktime_bits; in s3c_cpufreq_update_loctkime()
542 val = calc_locktime(rate, cpu_cur.info->locktime_u) << bits; in s3c_cpufreq_update_loctkime()
543 val |= calc_locktime(rate, cpu_cur.info->locktime_m); in s3c_cpufreq_update_loctkime()
555 size = cpu_cur.info->calc_freqtable(&cpu_cur, NULL, 0); in s3c_cpufreq_build_freq()
564 ret = cpu_cur.info->calc_freqtable(&cpu_cur, ftab, size); in s3c_cpufreq_build_freq()
574 if (cpu_cur.info && cpu_cur.board) { in s3c_cpufreq_initcall()
580 s3c_cpufreq_getcur(&cpu_cur); in s3c_cpufreq_initcall()
581 s3c_cpufreq_show("cur", &cpu_cur); in s3c_cpufreq_initcall()
583 if (cpu_cur.board->auto_io) { in s3c_cpufreq_initcall()
592 if (cpu_cur.board->need_io && !cpu_cur.info->set_iotiming) { in s3c_cpufreq_initcall()
598 if (!cpu_cur.info->need_pll) in s3c_cpufreq_initcall()
599 cpu_cur.lock_pll = 1; in s3c_cpufreq_initcall()
603 s3c_cpufreq_freq_min(&cpu_cur.max, &cpu_cur.board->max, in s3c_cpufreq_initcall()
604 &cpu_cur.info->max); in s3c_cpufreq_initcall()
606 if (cpu_cur.info->calc_freqtable) in s3c_cpufreq_initcall()