From: dirk.brandewie@gmail.com Subject: [PATCH] cpufreq/intel_pstate: Change to disallow module build Date: Wed, 13 Feb 2013 12:14:42 -0800 Message-ID: <1360786482-881-2-git-send-email-dirk.brandewie@gmail.com> References: <20130212214949.GA1003@redhat.com> <1360786482-881-1-git-send-email-dirk.brandewie@gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=u6q8drDj7wgDgPvX33BNeRXKBQEPotNK/9sCsOflPbA=; b=DqNlFQVjI5U1aSaMpmxXZkvV84ABQTvZG/o6pr9zrLasMihLYuzx2OxnwwDofB/eHL fg75d4r+vYzLFG9KxiZmUCDBqNhwW4k0WDqZI6+lr8JOUpA318m0mH1ucXnceCZb6IzX WgJqU+HLSVezV2OLN/2xtVSEc+ShRPphnDltNDbJbvkQ7jP9FYfyyo6S0d1bq7XakqHp 7H9feWPmWvst353O4SEFoDbmZVdoQ3UO0yYF1PA828zbNgJJZqYI0BIUaBMxCPKj8wVS +RpjBN8GIuLy9rB8H9mrUo+zF9ZQU8SvhlG2vNxSl+uSYPxz+07336EUUxkU9MnLLwPS 4Exg== In-Reply-To: <1360786482-881-1-git-send-email-dirk.brandewie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: davej@redhat.com, rjw@sisk.pl Cc: linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Dirk Brandewie From: Dirk Brandewie Load order is important in order for intel_pstate to take over as the default scaling driver from acpi-cpufreq. If both are built-in acpi-cpufreq uses late_initcall() and intel_pstate uses device_initcall() so it will be able to register as the scaling before acpi-cpufreq for the processors supported by intel_pstate. If acpi-cpufreq is built as a module then intel_pstate still gets first option to become the scaling driver. Signed-off-by: Dirk Brandewie --- drivers/cpufreq/Kconfig.x86 | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86 index 6aa7053..98e5abb 100644 --- a/drivers/cpufreq/Kconfig.x86 +++ b/drivers/cpufreq/Kconfig.x86 @@ -3,7 +3,7 @@ # config X86_INTEL_PSTATE - tristate "Intel P state control" + bool "Intel P state control" depends on X86 help This driver provides a P state for Intel core processors. @@ -13,11 +13,6 @@ config X86_INTEL_PSTATE When this driver is enabled it will become the perferred scaling driver for Sandy bridge processors. - Note: This driver should be built with the same settings as - the other scaling drivers configured into the system - (module/built-in) in order for the driver to register itself - as the scaling driver on the system. - If in doubt, say N. config X86_PCC_CPUFREQ -- 1.7.7.6