From patchwork Tue Feb 5 17:52:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10797935 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 DE71B17FB for ; Tue, 5 Feb 2019 17:52:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD8E12C646 for ; Tue, 5 Feb 2019 17:52:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C19FB2C6E7; Tue, 5 Feb 2019 17:52:46 +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 76AC52C711 for ; Tue, 5 Feb 2019 17:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729040AbfBERwp (ORCPT ); Tue, 5 Feb 2019 12:52:45 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42180 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbfBERwo (ORCPT ); Tue, 5 Feb 2019 12:52:44 -0500 Received: by mail-pg1-f193.google.com with SMTP id d72so1687755pga.9 for ; Tue, 05 Feb 2019 09:52:44 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lE5yLqTeGGzTuTS9U9D6qCeOCCp6sDjOXNtuvEolMxk=; b=cuI+2buMAzJ7tZGfPnorLWhnzwQuR3sPLF2FZaqVNYo3uVDIRbncjhjz00Zf527bWX 5lYCc+DOs9zjfoKoLIftxijfQp38/Lb3sttKucQmCv/dL3oX44WSKZBYhZcbQMldT6Z0 DbQmgAs9dIPqStDb/+ZgJbCmarG2wbFIMNyE8Vos1ORqz1p19h36GyTubsadxgaBcHU8 Sg5me38CXr+r/mO4WTEtm75oVPZUGlyMRMyWt8/oduYWV2X2XVKMHL/QxcyfQz8UY+um HGdNwmXCWwIAaJtWc71I5ZJO5SZpoOwhtaifnz56VGns745E6q2d0/Xfdv2D/l++K4wy YVQg== X-Gm-Message-State: AHQUAuaTDDCNXIRDs8fpUlILwNjcmv9T0KF+KtcC9srBQ0cfvolNEub/ GkR/kPePFjSzqhUz/zLcK8IN1w== X-Google-Smtp-Source: AHgI3Ibt+4FhFR95YadQ/0Wt8EUUFAo7LV3Q9O8AHSTCYnFhrRQqz1N2Dxc8bQw0LXsxw7UzzitZqQ== X-Received: by 2002:a63:571f:: with SMTP id l31mr2796053pgb.91.1549389163752; Tue, 05 Feb 2019 09:52:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 09:52:42 -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 2/2] cpufreq: mediatek: Register an Energy Model Date: Tue, 5 Feb 2019 09:52:25 -0800 Message-Id: <20190205175225.25923-2-mka@chromium.org> X-Mailer: git-send-email 2.20.1.611.gfbb209baf1-goog In-Reply-To: <20190205175225.25923-1-mka@chromium.org> References: <20190205175225.25923-1-mka@chromium.org> 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 mediatek-cpufreq to allow interested subsystems like the task scheduler to use the provided information. Signed-off-by: Matthias Kaehlcke --- drivers/cpufreq/mediatek-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index eb8920d398181..e6168ee582783 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -460,6 +460,8 @@ static int mtk_cpufreq_init(struct cpufreq_policy *policy) return ret; } + dev_pm_opp_of_register_em(policy->cpus); + cpumask_copy(policy->cpus, &info->cpus); policy->freq_table = freq_table; policy->driver_data = info;