Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp587374ybb; Sat, 28 Mar 2020 05:59:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsGyAnCxWAXahwLJwDiprM5/1/6IRkJc+z10tyAEeeKKhu4GcGP7A9rHFzuDWJdpH611q6w X-Received: by 2002:a05:6830:17ca:: with SMTP id p10mr2701304ota.165.1585400374010; Sat, 28 Mar 2020 05:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585400374; cv=none; d=google.com; s=arc-20160816; b=yvYs+tR6c4dMHExhrmwRjUHY1/jRBGFuEV3XPdbG2afLeqvfnsdM2ZuANJ86kw5EVi Vm8MXftQWPrcPwZQ1SorRKO9f1QrS2XXYVBfanF04+R/gI5AdnTEqC8oKB0n6Jxu9bdX tZBLRy6xzeudcP+77m3zpSwf6fNHoMmoi08iKGQjVnKmmO3rz9jyyP8bWKci7REg6GBy YYSBYyKLXU4CbEgRiVPHQXBxMayhat5NTie3ZQiEDDX/G3SjMXtEh2yjtkcLgDX6lXY3 WfCWDImmFRw4jialgNSNsqY6BjL/SFewmiaiqZDDWY923HyQpFz2v5U8ggp86Vjt1v1X gdNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rvAobNT0+tJam4u5MoJRcFybt4jUlosZxlPm8ATYcog=; b=pPS4jJpKinG+PzynZrdVVf2jbShyXYT0eJpSgiSuh1BzHrnQ8AjzLvglRyTvjPZgs1 UNrWq2KV0qbClGZm0N0Zip71/b663w4mlqWK8Os+p3yVN4EnAD4IIsV4FTy85liz0kFv +DIBHKbpanxa4kAHTPo2tmuSi2bd1B07nepJBPZso9FAo1ae+JEkPrOs0dYgYBWjKcwQ VYapRUTY1MAFdECAsBC4xPgTs3hA4V3kHCk3e42z1BTONsVOOOwg7lpfTzjYzyFJ3NO8 +KoK64LWwbOCvoa7JJt7LU5J4Kwzcph/C/5ieF+F4x8KHTyrgMEW6prhGaahM055ilD2 De1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si3566438otq.133.2020.03.28.05.59.06; Sat, 28 Mar 2020 05:59:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgC1M61 (ORCPT + 99 others); Sat, 28 Mar 2020 08:58:27 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:43401 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbgC1M61 (ORCPT ); Sat, 28 Mar 2020 08:58:27 -0400 Received: from 185.80.35.16 (185.80.35.16) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id 5bf184116b0b3e6b; Sat, 28 Mar 2020 13:58:24 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: Srinivas Pandruvada , LKML , "Rafael J. Wysocki" , Viresh Kumar , Giovanni Gherdovich , Doug Smythies Subject: [PATCH 1/2] cpufreq: intel_pstate: Select schedutil as the default governor Date: Sat, 28 Mar 2020 13:57:06 +0100 Message-ID: <2084178.yfvgZJeXvx@kreacher> In-Reply-To: <2016232.ihCVsphvri@kreacher> References: <2016232.ihCVsphvri@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Rafael J. Wysocki" Modify cpufreq Kconfig to select schedutil as the default governor if the intel_pstate driver has been selected and SMP support is enabled (because schedutil depends on SMP). Also select schedutil as well as the performance governor from the intel_pstate Kconfig section to ensure the equivalence of the passive and active mode governor configuration options. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/Kconfig | 3 ++- drivers/cpufreq/Kconfig.x86 | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index bff5295016ae..9f0e7e79ed14 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -37,10 +37,11 @@ config CPU_FREQ_STAT choice prompt "Default CPUFreq governor" default CPU_FREQ_DEFAULT_GOV_USERSPACE if ARM_SA1100_CPUFREQ || ARM_SA1110_CPUFREQ + default CPU_FREQ_DEFAULT_GOV_SCHEDUTIL if X86_INTEL_PSTATE && SMP default CPU_FREQ_DEFAULT_GOV_PERFORMANCE help This option sets which CPUFreq governor shall be loaded at - startup. If in doubt, select 'performance'. + startup. If in doubt, use the default setting. config CPU_FREQ_DEFAULT_GOV_PERFORMANCE bool "performance" diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86 index a6528388952e..758c69a2e1bf 100644 --- a/drivers/cpufreq/Kconfig.x86 +++ b/drivers/cpufreq/Kconfig.x86 @@ -8,6 +8,8 @@ config X86_INTEL_PSTATE depends on X86 select ACPI_PROCESSOR if ACPI select ACPI_CPPC_LIB if X86_64 && ACPI && SCHED_MC_PRIO + select CPU_FREQ_GOV_PERFORMANCE + select CPU_FREQ_GOV_SCHEDUTIL if SMP help This driver provides a P state for Intel core processors. The driver implements an internal governor and will become -- 2.16.4