From patchwork Mon Jan 28 06:41:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156697 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3089402jaa; Sun, 27 Jan 2019 22:44:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN4vqk0DLlxsvkhwVSbDaSRQ4fQseoUMmT+GmGGZH35Zs0E4XiFhU89nYabFcUBiriOwRxhc X-Received: by 2002:a63:9843:: with SMTP id l3mr18670995pgo.413.1548657889615; Sun, 27 Jan 2019 22:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548657889; cv=none; d=google.com; s=arc-20160816; b=o7pkRJz0nxdra/fLX1xTRzhB76CNeL+O1KXbpH/S55zCJVcCNkcIEf+0tF72mUHGjT OIZJZUjdiGApmC7sOvT32X9fEflDPg2+AmfikgxVuZW6s2Fi1Kn3/J5I+OyahayPq9B0 TTlIs35BcKp69QVRSRbbkrFhXCgb1eY26KrYRU5qs0k3QUpMk1R07aliBdraYyiu4H1G x1XM7ypG32wYJSlrijMLc3v23sehqlcW4nWzZ8wqnrvtqIjiI3/Iskwtzgzf8Aw02I9W WzZHWjDDF21umXHZuEjnZTyJEqmWd/i7p6y1DiFqxDHG8Ipf9L8lCdSQwBexgbzBUCRJ reJA== 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=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=Zi/ESujjt397hYVALV4w+ji5LYCDYR6I/sx6PxEYJ6c1roduZJ2iQCH136/NofZTrT 8QP5jEM2vndI9JGVugCAo3Xnu+PCpz4schXyqd3yGYLtyILFz2v5Oe0PRx6wH6OsJUXj 6fdtIpAybLYrmwKxhy3ddpFcE6vChfeD5LSwfdN/Okd7Ann9EH2JViBPPYyZ8ytw3Mcg qoAx3y7+XcJ1R2jxWbrXTOIHgy0NTOWyRRvWEIOXkmrena+pIqeqIlCKR859QbuatyT/ 4/YZ3DkmYurFV/oEkXMiXrZOnxflx8ahubKAx9ZI+tB2CCJsbB04li9KNA1VjQpPEYre +UKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WavQSbx2; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b12si30015196plx.159.2019.01.27.22.44.49; Sun, 27 Jan 2019 22:44:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=WavQSbx2; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726630AbfA1Gos (ORCPT + 15 others); Mon, 28 Jan 2019 01:44:48 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54631 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbfA1Gos (ORCPT ); Mon, 28 Jan 2019 01:44:48 -0500 Received: by mail-wm1-f65.google.com with SMTP id a62so12675566wmh.4 for ; Sun, 27 Jan 2019 22:44:47 -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=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=WavQSbx2bNC7C5yXALjdMV9Q0Wx7HAjLbSy6inoEb7pl1O3r0nECunTHyUcMG7vuj3 VJd2jcU2RXYVDDZau8U17OeW7DYNzGcnOeP3UHJOaM/HETxWZOlBi8yJWjWduHhZD/FG 7djYzrGCgCp+9bAJdn/bi36YEKIXc+lSUrowQ= 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=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=rha5GpdgMI0DRK7hFy/LmKs9pMmzrVCkl4uo+xUNf1W1UyeRc3NyJvsyEtiNGCx4yM GkSGDIjGQszzMN7dvxrmEgh1QjZNAF/ZJKr/UOOF8hL4YwtvpJWJSaQEaXL+lSohszFI IdWsxVRj0D1CbeSgrI3GVwBBP8aTjQac+UEpAskDAz4EjFXQ5gHEdWscN1XryfWfxiPa 9BMkejf9pcxooUwsrYpqyGF753xgz+Fjcc93gENTtUdPmAHZ+9McvKxLVkFDuIrTiQHm lDAIE8liD09YSsVbGBh7R0POuU9Y00RshkWh/xwhXDd9dfM7uZU9zr90F7B5qDWAkeMK nLkQ== X-Gm-Message-State: AJcUukdULVp07MGDsbOckD6CU3akKxiRvMlHeBXNDutzZkdiSa2Y9UI7 3tppkFakif8J6Qm5i0O1NBIwNA== X-Received: by 2002:a1c:7fca:: with SMTP id a193mr15814801wmd.36.1548657886741; Sun, 27 Jan 2019 22:44:46 -0800 (PST) Received: from localhost ([49.248.191.44]) by smtp.gmail.com with ESMTPSA id 127sm131120424wmm.45.2019.01.27.22.44.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Jan 2019 22:44:46 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , Taniya Das , linux-pm@vger.kernel.org Subject: [PATCH v4 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 28 Jan 2019 12:11:28 +0530 Message-Id: <65d7297bbf98fd525d3785f2e8eb5a412ffd3a6b.1548654899.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- 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..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,