Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbcf0719 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

cpufreq: cpu0: rename driver and internals to 'cpufreq_dt'



The naming convention of this driver was always under the scanner, people
complained that it should have a more generic name than cpu0, as it manages all
CPUs that are sharing clock lines.

Also, in future it will be modified to support any number of clusters with
separate clock/voltage lines.

Lets rename it to 'cpufreq_dt' from 'cpufreq_cpu0'.

Tested-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0bf18f19
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
Generic CPU0 cpufreq driver
Generic cpufreq driver

It is a generic cpufreq driver for CPU0 frequency management.  It
supports both uniprocessor (UP) and symmetric multiprocessor (SMP)
systems which share clock and voltage across all CPUs.
It is a generic DT based cpufreq driver for frequency management.  It supports
both uniprocessor (UP) and symmetric multiprocessor (SMP) systems which share
clock and voltage across all CPUs.

Both required and optional properties listed below must be defined
under node /cpus/cpu@0.
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ CONFIG_ARM_ATAG_DTB_COMPAT=y
CONFIG_CPU_IDLE=y
CONFIG_ARM_MVEBU_V7_CPUIDLE=y
CONFIG_CPU_FREQ=y
CONFIG_CPUFREQ_GENERIC=y
CONFIG_CPUFREQ_DT=y
CONFIG_VFP=y
CONFIG_NET=y
CONFIG_INET=y
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

static void __init imx27_dt_init(void)
{
	struct platform_device_info devinfo = { .name = "cpufreq-cpu0", };
	struct platform_device_info devinfo = { .name = "cpufreq-dt", };

	mxc_arch_reset_init_dt();

+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static void __init imx51_ipu_mipi_setup(void)

static void __init imx51_dt_init(void)
{
	struct platform_device_info devinfo = { .name = "cpufreq-cpu0", };
	struct platform_device_info devinfo = { .name = "cpufreq-dt", };

	mxc_arch_reset_init_dt();
	imx51_ipu_mipi_setup();
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
		}
	}

	platform_device_register_simple("cpufreq-generic", -1, NULL, 0);
	platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
	return 0;
}

Loading