Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2205987imm; Tue, 10 Jul 2018 15:26:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdF5XInGfizRKqtwpbzfiL4lM1Yn2cON1ND/kz75TJHOg/DNLqnDsjGltRR11GlQ0KE7N3q X-Received: by 2002:a65:46ca:: with SMTP id n10-v6mr18303002pgr.345.1531261575131; Tue, 10 Jul 2018 15:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531261575; cv=none; d=google.com; s=arc-20160816; b=O8yfqFRMHHTPNDnqwqvXONY+TZJMETz4vPthhVP4iSyVUEOLiZTzvFs6KQ7SdfRH0y zzJEOs3Ujh7il84b6purGzKEbpEpcCkgzVhoL10AeGO4i2PCHgh14CMjDbUf24ymXUUg CviDy8k5q6VjCuL2UfvXPoSAIEE/+MaCVvVNK2sbT95hRkgFlBjU+zqvKd2aBepin6y1 NhEmyHTW4NTsBtj1sv6j8PSlmLz+sBYrXGQF6gnDLCJm3sK2NsDxg/P725wB5K+toxXy gyjIf63ldkC8SAN0D2f5fRvwB56hDHln4aAqDiUgneD1focw8wPlf2kvfe/S0EZZ30YL xdYg== 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=1PKlXgPssjbxOwXZtieTzlWr8uOIlaa+Smbc7Lc+DbU=; b=KNJ7rEQLyOm/zH2j5l5MOvB+iC4sTNDRwrv/OC9KvPUKZHDcG8XpBckeJP6wpz66Yb KlChr1f3rbfy13cpg9hCYNqvhePV09oGZ02doPIvhEK1qD1Uk55hn+mD4tNFkiXFnLjI I+RNTezxMi0lGUwoOzSbqZgD6KmxkXLo41Tdd5WrCRlUmoEEbLVDtgnEFy4Ii3j2IEia VlEtWAsQcF8NDVbMbD6TTvgBVEOicWxguTxc6dqvlngqzl+naC07RrLOtqyG70DH4eZ2 96uGKL6c7IfvbKyoodoQXgq04WWpgPUDH4pGGP5Y7MmZjfHZMZ0Zgd+ZmpyP3IVY6l8M lRPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="eD8Sd/WP"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si18252991pfl.87.2018.07.10.15.25.52; Tue, 10 Jul 2018 15:26:15 -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=@chromium.org header.s=google header.b="eD8Sd/WP"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732298AbeGJWZ3 (ORCPT + 99 others); Tue, 10 Jul 2018 18:25:29 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39649 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732272AbeGJWZ3 (ORCPT ); Tue, 10 Jul 2018 18:25:29 -0400 Received: by mail-pf0-f196.google.com with SMTP id s21-v6so17038007pfm.6 for ; Tue, 10 Jul 2018 15:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1PKlXgPssjbxOwXZtieTzlWr8uOIlaa+Smbc7Lc+DbU=; b=eD8Sd/WPShUVSobJGPDsgmR+ZJisWSUw9VqscW2bFLZ83IN+bf0ZGtNDAKsSCTudjP VCOJbe4082/wSUCnWBvJzO05UwsdEOKgLICTOubBYVpkfEQtpfYiyOIvymy9O+YP0Ugy CrImZ8ZuhW5B47HZzGLG5HBQghhPFLmUtOhyo= 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=1PKlXgPssjbxOwXZtieTzlWr8uOIlaa+Smbc7Lc+DbU=; b=UbjwRzH6SIXkBXH4l8UG07mlenQNeHR03KcgW+nD0wmUsxa1sC55udh17JaZZfML3F 9HqqkQEhfO4wAFqvIQqBpMHifUvhw6VHdDG2fXxTmUq+bWYsWGBOfh2ndYIyKbBAELXl QLo7HhpOh7pKvAkY2EvFS5aSYtsRdwBfX3kTQanE9+spb3QppAGgTG7jenIntEUg1Yem rbdio/3+H/YFeAvXxV4ZaEZNjdzwg4DwVPk5zDJRkz+BVlU/dblc9ggQi42TdcsVc2az r7eKh2ahAbedWWETMEkzwZCV0vrwgysy6ntVxnog17Etzk3Fdscy5NQuU/00/q8IOGFY ITaA== X-Gm-Message-State: APt69E3MZ6I2bS0R3QIPVbUb3tk2K5w5n/d8Koh1Z7KtfjfyZr80VaIo htfhwaGGobvB8zilpgG5dm/FBw== X-Received: by 2002:a63:64c2:: with SMTP id y185-v6mr24039214pgb.126.1531261460536; Tue, 10 Jul 2018 15:24:20 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id 4-v6sm12432515pgj.22.2018.07.10.15.24.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 15:24:19 -0700 (PDT) Date: Tue, 10 Jul 2018 15:24:19 -0700 From: Matthias Kaehlcke To: "Rafael J. Wysocki" 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 , Viresh Kumar , Lee Jones , Benson Leung , Olof Johansson Subject: Re: [PATCH v5 08/12] cpufreq: Add stub for cpufreq_update_policy() Message-ID: <20180710222419.GR129942@google.com> References: <20180703234705.227473-1-mka@chromium.org> <20180703234705.227473-9-mka@chromium.org> <2392356.ug1cyb9g3O@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2392356.ug1cyb9g3O@aspire.rjw.lan> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 04, 2018 at 12:41:21PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 4, 2018 1:47:01 AM CEST 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 > > > > I can take this patch if you want me to. Sounds good. This series is moving forward slower than I had hoped and there are a few patches that are useful independently of the throttler at the end of the series. It probably makes sense to start integrating them rather than carrying them around unchanged from version to version and repeatedly spam . Thanks Matthias