From 289a92b87e48c07a4f112095177a00a7951bb91c Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Tue, 17 Aug 2021 20:38:51 +0800 Subject: [PATCH] cpufreq: rockchip: do not select CONFIG_CPUFREQ_DT_PLATDEV for cpufreq-dt cpufreq-dt-platdev.c is useless on rockchip platform, remove it and save memory. $ ./scripts/bloat-o-meter vmlinux_before vmlinux add/remove: 0/4 grow/shrink: 0/0 up/down: 0/-18284 (-18284) Function old new delta __initcall_cpufreq_dt_platdev_init6 4 - -4 cpufreq_dt_platdev_init 248 - -248 blacklist 8232 - -8232 whitelist 9800 - -9800 Total: Before=10211366, After=10193082, chg -0.18% Change-Id: Ibcc15aa3a8b13afa208c77979b75c617aeaef5fb Signed-off-by: Liang Chen --- drivers/cpufreq/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index bf8690dd0b0a..e9f486b3f1a3 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -246,7 +246,7 @@ config CPUFREQ_DT depends on HAVE_CLK && OF # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y: depends on !CPU_THERMAL || THERMAL - select CPUFREQ_DT_PLATDEV + select CPUFREQ_DT_PLATDEV if !ARM_ROCKCHIP_CPUFREQ select PM_OPP help This adds a generic DT based cpufreq driver for frequency management.