From patchwork Tue Feb 5 17:52:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10797933 X-Patchwork-Delegate: viresh.linux@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DEF517FB for ; Tue, 5 Feb 2019 17:52:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F276E2C6F0 for ; Tue, 5 Feb 2019 17:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E66392C702; Tue, 5 Feb 2019 17:52:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28E2F2C6F0 for ; Tue, 5 Feb 2019 17:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728874AbfBERwn (ORCPT ); Tue, 5 Feb 2019 12:52:43 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:47009 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728870AbfBERwn (ORCPT ); Tue, 5 Feb 2019 12:52:43 -0500 Received: by mail-pl1-f194.google.com with SMTP id o6so1794928pls.13 for ; Tue, 05 Feb 2019 09:52:42 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=4VqdMM+w0qT/K7e9KJmdykIErjiwD51l9d/UiASd0yI=; b=nNUzGxgoDCiogc9YizgLmqhXV557u6mQCaskXHIE+jmx+7vMVNB0gOOAl2iTcqnrBo OpUCDv+8Bjjbe/kyh/4bwezOFEQSgXTZkXx5spgDuGlayEffrQV2t0GV/dUzCCxKkA/J XC+tLTCv9dABOHXZg7uCCXqu7N9U1Ve16n+0GJjbHDbpAbDqDH/dv9fuH68C3F+NezT9 yu0dzB6g2+UoVlOtKG1c4i9MbU2RwNrd33Bn70src4vmGjQvYILh3SvYv5DUVeYZzIfP gsc6v0GpFu426E5Qwzw2WUy7r0N3J9CunI2974qnohiI6lN1GtiPiz3w6k/WmMYo189C fL2g== X-Gm-Message-State: AHQUAuZAhwrtUr1F0SILjVLNKz4d7d6+/EbQWU7X+dCgZ0yCqQGHJ7az TtwhVJbwGOfhGyhhXlUOjCGTFA== X-Google-Smtp-Source: AHgI3Ib6RXJt5ElBZ9izg3szJBC/E9z6G3PfrBwxlRYuo4v44yqQw+q4lCZNCEb+c8BP7RerBeaqEg== X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr6396409plt.106.1549389162105; Tue, 05 Feb 2019 09:52:42 -0800 (PST) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id 85sm6030280pfw.17.2019.02.05.09.52.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 09:52:41 -0800 (PST) From: Matthias Kaehlcke To: "Rafael J . Wysocki" , Viresh Kumar , Matthias Brugger Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Quentin Perret , Taniya Das , CK Hu , Eddie Huang , Nicolas Boichat , Douglas Anderson , Matthias Kaehlcke Subject: [PATCH 1/2] cpufreq: qcom-hw: Register an Energy Model Date: Tue, 5 Feb 2019 09:52:24 -0800 Message-Id: <20190205175225.25923-1-mka@chromium.org> X-Mailer: git-send-email 2.20.1.611.gfbb209baf1-goog MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Try and register an Energy Model from qcom-cpufreq-hw to allow interested sub-systems like the task scheduler to use the provided information. Signed-off-by: Matthias Kaehlcke --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index d83939a1b3d4c..a16b9dca7ea3b 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -205,6 +205,8 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) goto error; } + dev_pm_opp_of_register_em(policy->cpus); + policy->fast_switch_possible = true; return 0;