From patchwork Thu Jun 14 19:47:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10465187 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 5775960348 for ; Thu, 14 Jun 2018 19:49:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47E0128B21 for ; Thu, 14 Jun 2018 19:49:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B47828C24; Thu, 14 Jun 2018 19:49:09 +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 E43C228B21 for ; Thu, 14 Jun 2018 19:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755426AbeFNTsr (ORCPT ); Thu, 14 Jun 2018 15:48:47 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37512 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755472AbeFNTre (ORCPT ); Thu, 14 Jun 2018 15:47:34 -0400 Received: by mail-pg0-f68.google.com with SMTP id r21-v6so3380595pgv.4 for ; Thu, 14 Jun 2018 12:47:34 -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=Am8u4T8YEJ192VlnC7mxIIJ+wIqtTkEuSaMw62gHrDQ=; b=fCskMxpJLNs8rzjjn1aa8+zN9LSOKgZF7hjdw5RtEVWtqQyWYNC0J+PPs5X5+eQt3g loBO/VEpCKX+QfbEmFSngTxp88dJ0CIChH3KIRAO3MEAPlSomvlaV6BZsDN7GtjrSoGE A8WdlQvEWgLicMPZO/n9w/JKVkurIzKbTam1HY9sYPAHI/ZVifm7alxwfymkqbL/oZy3 5fw6Nl3oV8jH/8jLcmAXfiy4q6B+znW/tRgK99KaQvCY+i2REciasovyaT8SEp0JUQai Y082yk/F/4HbP2fbuyJd0rKH0uTMIMYl6UvNdBUwEMj3ir6bQ3J9buODIdr16hma/X5m mRPg== X-Gm-Message-State: APt69E2qOPwLqNWD+0W/35sV6bmMLME3juTGi3P/Vp965UOl3VnQNV95 TeTW5Se7SZCjF7+rtr3cPS4Zeg== X-Google-Smtp-Source: ADUXVKJe7oMJW85vYx0DH93lfaE/O/5lqhXb1ziL5fBa7YBVZS0JnPSh3TamO591vAGEA48Hb94MsQ== X-Received: by 2002:aa7:8148:: with SMTP id d8-v6mr10870894pfn.78.1529005653643; Thu, 14 Jun 2018 12:47:33 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id s28-v6sm9955506pfg.89.2018.06.14.12.47.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 12:47:32 -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 , Matthias Kaehlcke Subject: [PATCH v3 08/12] cpufreq: Add stub for cpufreq_update_policy() Date: Thu, 14 Jun 2018 12:47:08 -0700 Message-Id: <20180614194712.102134-9-mka@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a-goog In-Reply-To: <20180614194712.102134-1-mka@chromium.org> References: <20180614194712.102134-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 --- 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