Skip to content

Commit bbcf071

Browse files
vireshkrafaeljw
authored andcommitted
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: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0bf18f1 commit bbcf071

19 files changed

Lines changed: 46 additions & 46 deletions

File tree

Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt renamed to Documentation/devicetree/bindings/cpufreq/cpufreq-dt.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Generic CPU0 cpufreq driver
1+
Generic cpufreq driver
22

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

77
Both required and optional properties listed below must be defined
88
under node /cpus/cpu@0.

‎arch/arm/configs/mvebu_v7_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CONFIG_ARM_ATAG_DTB_COMPAT=y
3232
CONFIG_CPU_IDLE=y
3333
CONFIG_ARM_MVEBU_V7_CPUIDLE=y
3434
CONFIG_CPU_FREQ=y
35-
CONFIG_CPUFREQ_GENERIC=y
35+
CONFIG_CPUFREQ_DT=y
3636
CONFIG_VFP=y
3737
CONFIG_NET=y
3838
CONFIG_INET=y

‎arch/arm/mach-imx/imx27-dt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

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

2525
mxc_arch_reset_init_dt();
2626

‎arch/arm/mach-imx/mach-imx51.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void __init imx51_ipu_mipi_setup(void)
5151

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

5656
mxc_arch_reset_init_dt();
5757
imx51_ipu_mipi_setup();

‎arch/arm/mach-mvebu/pmsu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
644644
}
645645
}
646646

647-
platform_device_register_simple("cpufreq-generic", -1, NULL, 0);
647+
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
648648
return 0;
649649
}
650650

‎arch/arm/mach-omap2/pm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static inline void omap_init_cpufreq(void)
282282
if (!of_have_populated_dt())
283283
devinfo.name = "omap-cpufreq";
284284
else
285-
devinfo.name = "cpufreq-cpu0";
285+
devinfo.name = "cpufreq-dt";
286286
platform_device_register_full(&devinfo);
287287
}
288288

‎arch/arm/mach-shmobile/board-ape6evm-reference.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void __init ape6evm_add_standard_devices(void)
5050

5151
r8a73a4_add_dt_devices();
5252
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
53-
platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
53+
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
5454
}
5555

5656
static const char *ape6evm_boards_compat_dt[] __initdata = {

‎arch/arm/mach-shmobile/cpufreq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
int __init shmobile_cpufreq_init(void)
1414
{
15-
platform_device_register_simple("cpufreq-cpu0", -1, NULL, 0);
15+
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
1616
return 0;
1717
}

‎arch/arm/mach-shmobile/setup-sh73a0.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ void __init sh73a0_add_early_devices(void)
775775

776776
void __init sh73a0_add_standard_devices_dt(void)
777777
{
778-
struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, };
778+
struct platform_device_info devinfo = { .name = "cpufreq-dt", .id = -1, };
779779

780780
/* clocks are setup late during boot in the case of DT */
781781
sh73a0_clock_init();
@@ -784,7 +784,7 @@ void __init sh73a0_add_standard_devices_dt(void)
784784
ARRAY_SIZE(sh73a0_devices_dt));
785785
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
786786

787-
/* Instantiate cpufreq-cpu0 */
787+
/* Instantiate cpufreq-dt */
788788
platform_device_register_full(&devinfo);
789789
}
790790

‎arch/arm/mach-zynq/common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static int __init zynq_get_revision(void)
104104
*/
105105
static void __init zynq_init_machine(void)
106106
{
107-
struct platform_device_info devinfo = { .name = "cpufreq-cpu0", };
107+
struct platform_device_info devinfo = { .name = "cpufreq-dt", };
108108
struct soc_device_attribute *soc_dev_attr;
109109
struct soc_device *soc_dev;
110110
struct device *parent = NULL;

0 commit comments

Comments
 (0)