Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3996122imu; Mon, 14 Jan 2019 12:55:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN7OIHXS/bBupFP4/nO23UCu89A8I3eybvrYwkLeeT74YszXyIZSbn9iaYATzgARivFvIy7q X-Received: by 2002:a63:e5c:: with SMTP id 28mr335886pgo.369.1547499358345; Mon, 14 Jan 2019 12:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547499358; cv=none; d=google.com; s=arc-20160816; b=b7Ad5UYydo/csYnXRnthpbJuVQrg40IacETn+iIcJnyiAv2RORauE1ZFU/dM1z0AM5 /FQ2Xy80Vg3fUGExsqKr6AgBNVeJD5ClbiQeRabWG141VQOEjE5akKwcoP2PV892T+Ov eetKXxjeXAvWG9Go9KPULpXoa6TLNi/0xVkSn54f2uUubnUe7ozxbwv0oOGk1AfK3a49 P+VIEI/zSW6pZs8Clo8ipv/MFXkR2DN8qe0G1xq7xkfAx+8cQdhrzlRysOmbQvQGYpp0 izQsU+s8fenwV1WTWTG9We8RBaBK1n3NrA38QmFw2wqmiYthSFGcU0Za1HAIm7GlHlf8 +5kA== 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; bh=bNNDGi8G+3A2PTJSlwP2eZj4dWf1yGhPH3nQppllyKo=; b=sSWvC9Fxk541bcnDUgvHCjWh//QQon3ilvK6LA6yGzsCB8HR7sfhDL8hl7qK2DFZ0d 2ailJrgk9ZcRoo1m2qyTtDuECfYTqAlFtmcUjxV1HSneFX8gl9cyW9xRK6aTVHAcpOJ9 kw7OYZzGxhLXqc64X5PcesOJiuSz1i/5Y3838MZwU7dbJD/SPLLEJNfE7raGUP7heXjE 4paiLXIXsT9nZ4coEViYy4Co7+izyPbrizSeZa0Yr13Mr9tRQ2nDIAYmmTB7db52V2q3 abxiEDOMxXW9cwNxybr1FlJE3mHNHC3ItNuk7UuCjiSCKfbGCpllMyMhntTps8c81GT9 GsKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="fx3/pE6e"; 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 i62si1275558pfc.17.2019.01.14.12.55.42; Mon, 14 Jan 2019 12:55:58 -0800 (PST) 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="fx3/pE6e"; 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 S1727067AbfANUyi (ORCPT + 99 others); Mon, 14 Jan 2019 15:54:38 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42732 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbfANUyi (ORCPT ); Mon, 14 Jan 2019 15:54:38 -0500 Received: by mail-pg1-f196.google.com with SMTP id d72so165103pga.9 for ; Mon, 14 Jan 2019 12:54:37 -0800 (PST) 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=bNNDGi8G+3A2PTJSlwP2eZj4dWf1yGhPH3nQppllyKo=; b=fx3/pE6eriS4ZLrRcSpMC63esvEVaxcRQZ/ZTy6UGuQXxqcQsLHSY3C5jVE/k7CRUM IiWo8HQRd2qB7j9jktQZiDF6IeZaB+QhOIC7gN/kqozOoLneml0ZbZZtaYyf18f7WMwm McFhg+1sNR1ZpzCnSryCLl1CWJOCRP4u2DjXg= 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=bNNDGi8G+3A2PTJSlwP2eZj4dWf1yGhPH3nQppllyKo=; b=KPZ8bLXpVKHrlFnasjw2DQd4E8quIkmLSNWHLFc/gkymkped/oGLYKLjYgrnc0/bcB s1pLxtvdysjLFPH58VODgcCFO/0HU2HTiOXPdJC2L2E3fyUzloxO8L4EhSQdateiPWHn zXByvOUdNzbLSaFd/lZp7IbNVna9/e5J7DAUI4dZE9VFy/h0ZSxvDYTo1hC+7z+AysP/ qzl+PM22P4t82N+mUVS39bmKMwgUeOePZOgjSp/+jtz88FqdOb0Ix25mbGpYsHQKAtaw qcbMnZiJqSg3d4hn2IUpfepYH8mGcdeh5hgl3wUQVU7LMByI5CFb/T61K6sypmEX5QgF XwrA== X-Gm-Message-State: AJcUukdKObUaGmptz6xPnx98ojJt1m/xbWjyqdsQtLau8r22bEAIglTQ Q0eM0s/5cPe/Tn4xmOLPnJ0Jfj9pNkKXRw== X-Received: by 2002:a63:9c1a:: with SMTP id f26mr360147pge.381.1547499277625; Mon, 14 Jan 2019 12:54:37 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id 19sm2299407pfs.108.2019.01.14.12.54.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:54:36 -0800 (PST) Date: Mon, 14 Jan 2019 12:54:35 -0800 From: Matthias Kaehlcke To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: Re: [PATCH v1 04/10] cpufreq: qcom-hw: Register as a cpufreq cooling device Message-ID: <20190114205435.GM261387@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 10:04:56PM +0530, Amit Kucheria wrote: > Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core > to auto-register the driver as a cooling device. > > Signed-off-by: Amit Kucheria > --- > drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c > index d83939a1b3d4..ed32849a3d40 100644 > --- a/drivers/cpufreq/qcom-cpufreq-hw.c > +++ b/drivers/cpufreq/qcom-cpufreq-hw.c > @@ -231,7 +231,8 @@ static struct freq_attr *qcom_cpufreq_hw_attr[] = { > > static struct cpufreq_driver cpufreq_qcom_hw_driver = { > .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | > - CPUFREQ_HAVE_GOVERNOR_PER_POLICY, > + CPUFREQ_HAVE_GOVERNOR_PER_POLICY | > + CPUFREQ_AUTO_REGISTER_COOLING_DEV, > .verify = cpufreq_generic_frequency_table_verify, > .target_index = qcom_cpufreq_hw_target_index, > .get = qcom_cpufreq_hw_get, Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke