From patchwork Tue Jul 3 23:47:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10505637 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A019D601D3 for ; Tue, 3 Jul 2018 23:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91BE928979 for ; Tue, 3 Jul 2018 23:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 862ED2899B; Tue, 3 Jul 2018 23:49:05 +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=unavailable 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 388B528979 for ; Tue, 3 Jul 2018 23:49:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932615AbeGCXsv (ORCPT ); Tue, 3 Jul 2018 19:48:51 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37750 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753611AbeGCXrf (ORCPT ); Tue, 3 Jul 2018 19:47:35 -0400 Received: by mail-pg0-f67.google.com with SMTP id n15-v6so1646439pgv.4 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=dZmoUwac7kILhih8YDPR2IhoS3Y4LvnFrOy+fE5gYzKP37p1JOPD4QJozELyhvdN2R fymOFMdQISNrCOaZo7Inm22i89M1LkBWc82S/nA0r4A71lH3+VQseYmXZG80lkMG2lsi 6d/txlelZrYArhPIsDt/V4Qz+30zaD1wAzA2xL8f8HlyYf7OQO0KcltJV/pDVda8rxFl PgJtob2KJUu5OGJAx4pXxPmfY43Grh1E9S/g9S3W106v3Ftu5sTv8rQVwClmoSXoeczS nPFOQUhtpqTdXSGM7yWdah8reyMbYWItFhTXq2uegmI4EGOP52jg3tNXAWsT3g4pAi+4 Zn5A== X-Gm-Message-State: APt69E1UcmmZiOcUwz8TtV7ZYHcKpGmzShoCifq7NvgIKCFtp1gwojHy SiYejl31PjrvcUJ6N0jQS80tNg== X-Google-Smtp-Source: AAOMgpf2mgVPutTnkpv/VuB7AMo14804KRD5BelHDJVKIRPWi9hCc+LPxAhn8BCKb4cXHypUf3uB3A== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Viresh Kumar --- 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