From patchwork Tue Oct 23 18:54:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Brodowski X-Patchwork-Id: 10653537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E501313BF for ; Tue, 23 Oct 2018 19:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D33122A2F5 for ; Tue, 23 Oct 2018 19:02:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C788B2A2F9; Tue, 23 Oct 2018 19:02:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3B7E2A2F5 for ; Tue, 23 Oct 2018 19:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728609AbeJXD1R (ORCPT ); Tue, 23 Oct 2018 23:27:17 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:58380 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727829AbeJXD1R (ORCPT ); Tue, 23 Oct 2018 23:27:17 -0400 X-Greylist: delayed 362 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Oct 2018 23:27:16 EDT Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id C533820093C; Tue, 23 Oct 2018 18:56:35 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 4D368210ED; Tue, 23 Oct 2018 20:54:29 +0200 (CEST) Date: Tue, 23 Oct 2018 20:54:29 +0200 From: Dominik Brodowski To: linux-pm@vger.kernel.org, srinivas.pandruvada@linux.intel.com, lenb@kernel.org Cc: rjw@rjwysocki.net, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: intel_pstate: Fix compilation for !CONFIG_ACPI Message-ID: <20181023185429.GA6756@light.dominikbrodowski.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 86d333a8cc7f ("cpufreq: intel_pstate: Add base_frequency attribute") Cc: Srinivas Pandruvada Cc: Rafael J. Wysocki Cc: Len Brown Signed-off-by: Dominik Brodowski diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 49c0abf2d48f..50c5699970c5 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -390,11 +390,6 @@ static int intel_pstate_get_cppc_guranteed(int cpu) static void intel_pstate_set_itmt_prio(int cpu) { } - -static int intel_pstate_get_cppc_guranteed(int cpu) -{ - return -ENOTSUPP; -} #endif static void intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy) @@ -490,6 +485,11 @@ static inline bool intel_pstate_acpi_pm_profile_server(void) { return false; } + +static int intel_pstate_get_cppc_guranteed(int cpu) +{ + return -ENOTSUPP; +} #endif static inline void update_turbo_state(void)