From patchwork Tue Jan 29 04:55:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156915 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4225633jaa; Mon, 28 Jan 2019 20:57:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jxMdnVDNj+1/JI/jGZVTmLpXNq67DfIfTxp3Tsd7KNNLTmfaUVHZ8m9QoxoEhKyFrS9ag X-Received: by 2002:a17:902:f20b:: with SMTP id gn11mr23563356plb.274.1548737848016; Mon, 28 Jan 2019 20:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548737848; cv=none; d=google.com; s=arc-20160816; b=Y7gsQDScbMALDUi4lozyKP+yjKgTAiKHiXNRx3naK3JdfZ7cP7Qo0vzEqLqtXAB++s fAmeYXkYGKnVUNfuWoRRoXtundVC1OtJ43qLTb81f/HlnATho+gP7e2gYIoqGqSJqHH9 ijsa6ar1RWI9cBguGzxy+30OTpqfAup5S3+fzGbmKz+6gEGLAJi8KOtl66Tc7kechsjP XW2zncsK0tCQQ3i0+fP0j2gA4cufIM/xm6bxgLqXHgi6+JRmh6WIjeduHeVc+DNRAUQX 8oWpLTG108+WMUxyrOnPejiFlTHV+TqleIgCrtBJ7UoLue3svqgveCYo+GQmSkqDQwQW WDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=f/AzGAh3ZudvUYw4T0qqJvy1cHtwmw9luwK7hINpsNI=; b=VyfMLlT4ccNmAc50bQKuGRM2oJAtt3jiccxxIGMTQE3xEw93DITJSh2GUU+qYLmwEE 4WFUGL2cTgUNHEN4FSTtsiEJuR4Blr6adooGu2VLjqcpiHD2IyueCTdb4qvXyK+q/ByR ha2zqvhOSRjqpRUUC1NrNTFJ9JA9ir89nu4goJFuOzcJYwQxw1xc+TaLLp1FH7XH7kmH 1AtscRPQQp9gLWf7TCIl9HvdnEL3hkxXMCpBTvlZ+XF85nYfUF9rbwcQZjUtU4jOaay8 kf2EMpqoc+Rqe3ejuM/H8mb5rJa3+D3HvTuokawg4xCihuF9zyXe30EDQwE3WlHgeXOp 4sHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YguGZwjm; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 h75si13936637pfj.257.2019.01.28.20.57.27; Mon, 28 Jan 2019 20:57:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=YguGZwjm; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1727209AbfA2E51 (ORCPT + 11 others); Mon, 28 Jan 2019 23:57:27 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45402 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbfA2E51 (ORCPT ); Mon, 28 Jan 2019 23:57:27 -0500 Received: by mail-wr1-f65.google.com with SMTP id t6so20471433wrr.12 for ; Mon, 28 Jan 2019 20:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=f/AzGAh3ZudvUYw4T0qqJvy1cHtwmw9luwK7hINpsNI=; b=YguGZwjmRGHbzKSRsmz+oxth3OP8Qd3nJF/HVLk4nVKRcrKFEYdezDxHQMpUfXuRa9 j9iZqlDxOSeG6nID3/KRGoDONxmOAulOC7XdDc0nlmWQUB8g30riWyYGhMjgHjDRYcQH NoMGNYgpLT8U7A2rgTIqs8aQQH/OIKQJrl2WU= 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:in-reply-to:references; bh=f/AzGAh3ZudvUYw4T0qqJvy1cHtwmw9luwK7hINpsNI=; b=BFkx5h/3pxXv3IRdP9+nDybAQlUwbBumZ2P+kHMgzQEqmKzC88pKiMXWYpi9DwEuXd FlsF0ucctjr/S29BAjwNMQvKmkafrBjBw1H/36mU7rR22MKXhqhX18a+vRduHeUG9iD9 8Gd3v0PEE3suhThziO5akCUngRoowhcUJeoKVvUr3X5thvuUMvqaEFcfxmsETDWMQYNp XVSlbgqbIv6URl3iizSAJOirFvEZsF3QLHZ6s02fYqC4Zu/pIXCx2hbFDG0r5pcYALuL nHG4ygAkZDv/XtkT1J71zHJXzQ2I6+iRo7tlPl1VrN02geyp53ULDht4DaXrcMBIcndx 7DRg== X-Gm-Message-State: AJcUukdYvzoLYvUoUQaoef99/TsRDQjukJbPtpQD1pU2Fxi7b2ctrQwO E4nwjkgDMNA8NF1af0B/ettqQw== X-Received: by 2002:adf:9d08:: with SMTP id k8mr25652098wre.203.1548737845146; Mon, 28 Jan 2019 20:57:25 -0800 (PST) Received: from localhost ([49.248.171.30]) by smtp.gmail.com with ESMTPSA id i13sm96485915wrw.32.2019.01.28.20.57.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 20:57:24 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Viresh Kumar , Stephen Boyd , Daniel Lezcano , Taniya Das , linux-pm@vger.kernel.org Subject: [PATCH v5 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Tue, 29 Jan 2019 10:25:09 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add the CPUFREQ_IS_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd Acked-by: Viresh Kumar Reviewed-by: Daniel Lezcano --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index d83939a1b3d4..c88b51304d89 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_IS_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, .target_index = qcom_cpufreq_hw_target_index, .get = qcom_cpufreq_hw_get,