Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6369743imu; Mon, 21 Jan 2019 07:46:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN6tl9CC1BEmD/+3zAr5vNYCgSMYDkRmNzX1qNy8wZTv0ZVkYcHhc1A762kZ4OxndvIohEGU X-Received: by 2002:a63:6cc8:: with SMTP id h191mr27550415pgc.366.1548085605267; Mon, 21 Jan 2019 07:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548085605; cv=none; d=google.com; s=arc-20160816; b=hgQHCkqwqf/HPu26tJLE44AS+i5PeJcUVI97m+G8FSAGeA5ObT/Hpu3fA6tUxkfQtO tQZZ5r29pu/sStdlMaD6VU/KrELY4DzW0HSpF6nn2xT79D9Zdxfpa6V4nHxI7ioMSrHa WkmABusOs7Udm7tWEDgZL2HszRIlzGzLLwYdMqc2LxiOfVQ0hcqusL517m9+TohQ9Mpu yv745xRn9gMAmCrE3Ior2m4PUxIMBADVYRftCN55IiXEvpDn0WNJOAYi1qtHwpwj4uab H2mPnGgb/qYB+hXsjE1MS1706fgOJoZ9lQ1YQRZmw9w3ievfAJr4VMoNNkPP2r+uTUC9 EMRA== 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=jJ0wgm1K5AQK1sFVrr3qV5/6YGgiTO7HJUcoD92JctyLqwNFIdU/8MClBlFV9wZTE7 OJC7KPwsrAG/OnY/VM+5CtbhRJnFOp9oSWoUlE+Aw4VRXQZBHYe+iL9PM//bmXhql9k7 seBwTSSL+5dWBr/AzmzzF/3PpibDTqYCjREjeNZktnGcl3Bp8aZG7wQlpKWPsJjboRkH 51FK4FVuASA+h43N/ZAX+FVr97CgUDveFLhtP6+KgDz9T5tM8J1reSlhOHoxiPHQ5F+2 TDBRTbCrAlNdICj3wcnWydgxf/d8YJmSZbx/MfhS9QWp896rewI8RuZKeGOlPJEEyc8T 0KZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MSRTlrDV; 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 p22si12744982pgl.340.2019.01.21.07.46.30; Mon, 21 Jan 2019 07:46:45 -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=@linaro.org header.s=google header.b=MSRTlrDV; 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 S1730291AbfAUPoA (ORCPT + 99 others); Mon, 21 Jan 2019 10:44:00 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46690 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729732AbfAUPn7 (ORCPT ); Mon, 21 Jan 2019 10:43:59 -0500 Received: by mail-wr1-f65.google.com with SMTP id l9so23845168wrt.13 for ; Mon, 21 Jan 2019 07:43:58 -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=MSRTlrDVky4wuhprrrQEcgS4g/A7iauwDUwHh2yTA2fvbfncJR+0YY/bCyhOfDD81i 6p2yhk24s9j+HJy0rPQkvX64Ac3b6OQfUFJh17Tm5vC8fLjAzF7EbNmAgGVNYikIV3At Pu8omYSPt/6n+u5VdPnEwpyp1tJ82t5ApivNg= 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=aelsO/l0sZL3dJj1kyEDzdZxvEoAk0ALzInf5Tv9J1WPMKLbPLNu6u6whX8Z7nNjyX Y62UNB7nGCgXqZa7n8ZNKjkvuQUr/82li72G3u5Gzmm+/LPyqX/MmIJWPVroEFMj78bp eNjHvWaE3CNSZUF9UbvcQKYaGVBpH5S6tgiNqe7HHAQWu7eCohehZ8VndVBvkGKPEAsi jJPec/DCJLOmoZdPEVWOJV6RLi1UyTrueG0sy8p1VFSi/t7xmwGyI7j2lE17qO70tNuu Q0m3MtZDMg3Wgw8cKLxEm9nmwj1nFG3h+Vwckz4L0rfZd/4K9jXYrExu786qBHph4ipQ HqgA== X-Gm-Message-State: AJcUukewqmAXhYCNIBKvSZyQ+qmP08/pgzbJX5mATWwMGKo/kN87NEkj Y3tgfz/7gD5XVzCNpbi5Y9dQXASBws8= X-Received: by 2002:adf:d089:: with SMTP id y9mr29250380wrh.22.1548085437537; Mon, 21 Jan 2019 07:43:57 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id j24sm116519156wrd.86.2019.01.21.07.43.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 07:43:57 -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 v2 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 21 Jan 2019 21:10:28 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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, -- 2.17.1