/* Register the given set of PLLs with the system.  */
int __init s3c_plltab_register(struct cpufreq_frequency_table *plls, unsigned int plls_no)
/* Register the given set of PLLs with the system.  */
int __init s3c_plltab_register(struct cpufreq_frequency_table *plls, unsigned int plls_no)
{
	struct cpufreq_frequency_table *vals;
	unsigned int size;
	size = sizeof(struct cpufreq_frequency_table) * (plls_no + 1);
	vals = kmalloc(size, GFP_KERNEL);
	if (vals) {
		memcpy(vals, plls, size);
		pll_reg = vals;
		vals += plls_no;
		vals->frequency = CPUFREQ_TABLE_END;
		printk(KERN_INFO "cpufreq: %d PLL entries\n", plls_no);
	} else
		printk(KERN_ERR "cpufreq: no memory for PLL tables\n");
	return vals ? 0 : -ENOMEM;
}