cpufreq: schedutil: Make default depend on CONFIG_SMP
diff mbox

Message ID 1462971135-613196-1-git-send-email-arnd@arndb.de
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Arnd Bergmann May 11, 2016, 12:52 p.m. UTC
CPU_FREQ_GOV_SCHEDUTIL gained a dependency on SMP, so now we
get a warning if it gets selected by CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
without SMP:

warning: (CPU_FREQ_DEFAULT_GOV_SCHEDUTIL) selects CPU_FREQ_GOV_SCHEDUTIL which has unmet direct dependencies (CPU_FREQ && SMP)

This adds another dependency to avoid the problem.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: bf7cdff19429 ("cpufreq: schedutil: Make it depend on CONFIG_SMP")
---
 drivers/cpufreq/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Rafael J. Wysocki May 11, 2016, 9:06 p.m. UTC | #1
On Wed, May 11, 2016 at 2:52 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> CPU_FREQ_GOV_SCHEDUTIL gained a dependency on SMP, so now we
> get a warning if it gets selected by CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
> without SMP:
>
> warning: (CPU_FREQ_DEFAULT_GOV_SCHEDUTIL) selects CPU_FREQ_GOV_SCHEDUTIL which has unmet direct dependencies (CPU_FREQ && SMP)

Doh.

> This adds another dependency to avoid the problem.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: bf7cdff19429 ("cpufreq: schedutil: Make it depend on CONFIG_SMP")

Thanks, applied!
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index 0bfc3427fc86..b7445b6ae5a4 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -110,6 +110,7 @@  config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
 
 config CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
 	bool "schedutil"
+	depends on SMP
 	select CPU_FREQ_GOV_SCHEDUTIL
 	select CPU_FREQ_GOV_PERFORMANCE
 	help