Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp187744imm; Tue, 3 Jul 2018 16:50:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrLyf3AfNigtHVoJPtDYxmnhME6eTVvclqexbseGcnc2Jou9shPe0NLjOaFsNY2/+YWbGC X-Received: by 2002:a62:1e81:: with SMTP id e123-v6mr31327002pfe.188.1530661804354; Tue, 03 Jul 2018 16:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530661804; cv=none; d=google.com; s=arc-20160816; b=mRzowBIVZ9AkcnY6FYUMwcpmN63x6ssYz6mCgImq88wd/MDofYHCOpM/YOct8VQkgj FPZ6YYFY/fzwvurG2A79M0Iw12qE94e5jFgUo11/g/c9o85j9UTg3V4mlDGt/zguz3FS JZKPOV6dXy4IqFKCZ6iIwbdwipvBRlZcVa8sThtVx0NS7zNWsj+/cjsYLvUnOWxg8VPm 7jdb8XJcNHj+azLThoZd73qmPkbVN9YB90KDUk2EjkrAbv5rAsdPdtjM4vIbonW2SnQg jGKVErpaDFqOSnLC5HkSVqxkRH/tSln7AVLJ8bE72HxlrxDkIyKuWj1mdduHLDOooUv4 Jplg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=JUnOEOr8gHOAxc3fUHt42J/mZXyIJOME2B8KjbvJWaQ=; b=n061Lp3kyabhCSF1Tf8v7kEJnlLqxfSdeg783d8HHsoAgZBI2M0YZ5a4kYbgL3qzgr Jw/y9tKXRtOZMSsHM9XXwgwoBH8JZyDene5W5XOnncAaLJZe9AFHwDHFPjAWO2aBv++9 l/A6hsUHoBgdoPOnhr+xhJ7IcLd966XgCttqnl/IJQjMyAezdULWLjMuVdYxRXRHB9KI VDMBGPgksRN9Z4FI2RZr3E2SHD2YFI5KDD3UZyPfygA8Zs29mFnSR4fza6ig1U51uRzI R75OKh5qenDbaf9z6lw4gwpBpkIU0LwyA6PNcpgRQJJ0EdJ5PeJYQ52NmumA/P9csC7e wVEA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc4-v6si2015516plb.254.2018.07.03.16.49.50; Tue, 03 Jul 2018 16:50:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932648AbeGCXsw (ORCPT + 99 others); Tue, 3 Jul 2018 19:48:52 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38252 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753608AbeGCXrf (ORCPT ); Tue, 3 Jul 2018 19:47:35 -0400 Received: by mail-pg0-f67.google.com with SMTP id b1-v6so656925pgu.5 for ; Tue, 03 Jul 2018 16:47:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JUnOEOr8gHOAxc3fUHt42J/mZXyIJOME2B8KjbvJWaQ=; b=DqjE4dOVR8v3U64PBCVYbUU9cqC9TzH7bM3wYlbLoCrTbENP2+tCeITvIj27mfcgIP eWZA29KD79hA5XDpo0cPzyVJFjRAbiK60htklqfVXtV8PSR9ePTYL1BMfgh2+2dI9u0u XhUmWNxRN/TSiw7Hc3j+MFqw7A6Iq2NfOuBp7XV5We/LJkDy7Vz2U4MyK9muTgETDQYJ wQ9Wddy/P2oFX5BS5xfrmqMG8WJsdfFfNnVuOyy5HN+oz3jStPuVg2S68btlkhriLI/7 rpbMVyPUyLVaTL0VVOn2+vU5MguDnMTMszF7C8PjqRFp58G1PcnTZASjtdr9K04qqS3s uJ4Q== X-Gm-Message-State: APt69E3dvyiyxur4TkR3dGJCDEpe1iZE84ef+ZfFKrTfGo9ArT2CC97+ YHYqEZLlLhcnZPR96XrtQeZ+lw== X-Received: by 2002:aa7:86d7:: with SMTP id h23-v6mr27889353pfo.132.1530661654453; Tue, 03 Jul 2018 16:47:34 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id l85-v6sm6608562pfk.79.2018.07.03.16.47.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 16:47:33 -0700 (PDT) From: Matthias Kaehlcke To: MyungJoo Ham Cc: Kyungmin Park , Chanwoo Choi , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Douglas Anderson , Enric Balletbo i Serra , "Rafael J . Wysocki" , Viresh Kumar , Lee Jones , Benson Leung , Olof Johansson , Matthias Kaehlcke Subject: [PATCH v5 08/12] cpufreq: Add stub for cpufreq_update_policy() Date: Tue, 3 Jul 2018 16:47:01 -0700 Message-Id: <20180703234705.227473-9-mka@chromium.org> X-Mailer: git-send-email 2.18.0.203.gfac676dfb9-goog In-Reply-To: <20180703234705.227473-1-mka@chromium.org> References: <20180703234705.227473-1-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cpufreq stubs out some functions when CONFIG_CPU_FREQ=n , but cpufreq_update_policy() is not among them. The throttler driver (https://patchwork.kernel.org/patch/10453351/) uses cpufreq as one possible throttling mechanism, but it can still be useful without cpufreq. Stubbing out cpufreq_update_policy() allows the throttler driver to be built without ugly #ifdef'ery when cpufreq is disabled. Signed-off-by: Matthias Kaehlcke Reviewed-by: Brian Norris --- Changes in v5: - none Changes in v4: - added 'Reviewed-by: Brian Norris ' tag Changes in v3: - patch added to series --- include/linux/cpufreq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 882a9b9e34bc..dba8c4951e2e 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -210,6 +210,7 @@ static inline unsigned int cpufreq_quick_get_max(unsigned int cpu) return 0; } static inline void disable_cpufreq(void) { } +static inline void cpufreq_update_policy(unsigned int cpu) { } #endif #ifdef CONFIG_CPU_FREQ_STAT -- 2.18.0.203.gfac676dfb9-goog