Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp654689imm; Wed, 4 Jul 2018 03:45:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfzJzcAI223F21g6RxKawkWBbs/MgTjuMEAgMxhNc2++L5+qjIBmrHTaT8inNiPBHBiIAd5 X-Received: by 2002:a63:ae42:: with SMTP id e2-v6mr1411426pgp.351.1530701131830; Wed, 04 Jul 2018 03:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530701131; cv=none; d=google.com; s=arc-20160816; b=MhWRIVWP0354ug3W5cAM6KEWiKK/d2/9yoBZup3MKnE1xzxWTNBI+As0K5zkm2iVuT EpS6KCdDVDMzDqSLaFNQUCFIkfvwKkd9Uk227kizZ7pkqTcVBZ7NzLT5N5fS9KoT1kCj OPWeVPWSoRjxyhFBy7hnst/Orm71moPK04DdJtXA1u4KD9TVHY+CMpDK4jYzj65ShThN dbK9hdEG8wH7OxXox0tRw7vMvluTdOgTnQ2pzwBe0ALw8Turlhz1o4zso+m1RiBY3BVW yQK8fpswrs09lzdqyfG6DW+s7Zub/qmEinBtZzdiCJTk7nF14sj6i/+2FjSJ5a2+Q+Qc Z74A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Ej7+hnB4uUyXt6RZcYrgRBcX+pmFqlB3hv3sgP60R6I=; b=ytmuTTUVcoyPTpcoQw/+1sHeGoHRcn7lGyHZ3X1RhH1fJf2VS48Pf02rIUmh2WgwJg EXWzabjeEOjlUc2CYWUcQihC5gSQvH+rHQUlb3zFqK4xtmw8BkBcN0hEbNyUgBxYc7UB yrANONBhIRgKkORGfrdhyc6rHj9yzV52etzdJcT0VDoQM4RJ4YHWF78Yb4Dfggy8Pkx2 RUi76hkbcC/XgB2yZx291QluWjB6yyWL7zGcZqzQfx4O0Mj4Ki7Apd3HsrvM0X9NM/MG FsjsvJOdCMku/uV7XHQSb6lJeqZL7RLEEj8omAd/j1+MSsflF5NbdHm+/8bDS2UcG7ac ycwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LTMj8gWC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6-v6si3029720pgk.256.2018.07.04.03.45.17; Wed, 04 Jul 2018 03:45:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=LTMj8gWC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933313AbeGDKoj (ORCPT + 99 others); Wed, 4 Jul 2018 06:44:39 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:44082 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753300AbeGDKoh (ORCPT ); Wed, 4 Jul 2018 06:44:37 -0400 Received: by mail-pf0-f193.google.com with SMTP id j3-v6so2460520pfh.11 for ; Wed, 04 Jul 2018 03:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ej7+hnB4uUyXt6RZcYrgRBcX+pmFqlB3hv3sgP60R6I=; b=LTMj8gWCiVSUvTSaC7CbNdw13WQ8UFSm9Z/jRzUuzdJHmHS49EBWBNzpv3ACwsdut/ BNRRZaqwowjBxvs/ALY7lLbhJS4b1VgcO8Ms7u4EBPt2NAfa4vM/V2pCH5DQfeqP/YOk nsGr/Vfu8mp28G7HIsiDCaKbnF3sXNAst4SFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ej7+hnB4uUyXt6RZcYrgRBcX+pmFqlB3hv3sgP60R6I=; b=BOk9JQ48V8K81nt3f6ncWNzJok2F2kvkIlbNXqsjmgcGIjFY0sQipjmczowQo2EIxD z4iCVTGyykV6Ca9B2oNlCNyM+sk+JYQJXB66is+EnHV8J7jt6vzV6obOwWeCcy6wme7F qlT1Zt8bp+lhrV/t1Xi999+a3KbiUwgJ40nbcR8DgHztPJCuEhW3kVL5AGIVecbMUsnG zAh4N1DWV9smrLfZkvM2CFEXx/rjA3qG+W2OzdrrOszOHkF1sXonefpw1QFWMegWw67m CHwW/9z4p0UZR7XZlwHo9yxG9EFqRHuDGUsug4lgaHEv6Iy6lw49YcnvjzIArFbPTmBI Zu9Q== X-Gm-Message-State: APt69E1N2gVIPIUt9gv5K5gy9jBNBhJm3ShBtcmWU7IsDL6vaOdepfN2 EJ9p/WR2Mfaetia7I83lyK0NTg== X-Received: by 2002:a62:748:: with SMTP id b69-v6mr1608912pfd.177.1530701076704; Wed, 04 Jul 2018 03:44:36 -0700 (PDT) Received: from localhost ([122.172.117.17]) by smtp.gmail.com with ESMTPSA id a20-v6sm4960220pgw.91.2018.07.04.03.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 03:44:35 -0700 (PDT) Date: Wed, 4 Jul 2018 16:14:34 +0530 From: Viresh Kumar To: Matthias Kaehlcke Cc: MyungJoo Ham , 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" , Lee Jones , Benson Leung , Olof Johansson Subject: Re: [PATCH v5 08/12] cpufreq: Add stub for cpufreq_update_policy() Message-ID: <20180704104434.subvhwvnkkiv255c@vireshk-i7> References: <20180703234705.227473-1-mka@chromium.org> <20180703234705.227473-9-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703234705.227473-9-mka@chromium.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-07-18, 16:47, Matthias Kaehlcke wrote: > 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 Acked-by: Viresh Kumar -- viresh