From patchwork Sun Nov 29 08:31:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pi-cheng.chen" X-Patchwork-Id: 57393 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp803406lbb; Sun, 29 Nov 2015 00:31:48 -0800 (PST) X-Received: by 10.98.66.152 with SMTP id h24mr62090253pfd.52.1448785908352; Sun, 29 Nov 2015 00:31:48 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p70si17059893pfi.231.2015.11.29.00.31.47; Sun, 29 Nov 2015 00:31:48 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbbK2Ibr (ORCPT + 11 others); Sun, 29 Nov 2015 03:31:47 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34654 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbbK2Ibq (ORCPT ); Sun, 29 Nov 2015 03:31:46 -0500 Received: by padhx2 with SMTP id hx2so152824579pad.1 for ; Sun, 29 Nov 2015 00:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7CswXCVzy/c+A4/53EcMDgwe30ZBYDooXSzLU2PeNhg=; b=DVwgSUpexhdbRnnusfbq2kP0XRpNAxApU3lOOUmOB6mBpbz5TaHcz7m9E/O+/kTG46 kFHaFnlHXOapRXT0ASLUzhReGLuQEUptuMjeEHLayCC8KqTN6i9ug6vJ/COjX0t1Ffxs 2pswelzhJ+ukG1jG5Nqz8/xILZTy1xZ1B2q3H6Z5obGu6HnNqJAbx4scUFuMa6OD8MVV PeXECvEjj9gOezonmbXvkpVkHahXT4VrFh6im4pSlOemaDmO/ZtomF4wrvBpSFWkl/Jo KvD9S47WcL4AJMgkNeISmcMXP6DpCGPF2sjrBR2j0n03hchM/LI9uO9bH4ZmJBO0SpWZ Jcjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7CswXCVzy/c+A4/53EcMDgwe30ZBYDooXSzLU2PeNhg=; b=IDEdh68eyMkcwKBLZh50wTZQexIMpmV2qnYaOn1M2UIYX6jQMYJXrF7GwMDfl4RQnX N9TEdfLnsNuNNIcMJsXQj1ybgpM1aZ4CFDh7GwrcQIoE55pyWDHB47q2dKc7MhmjR9yf EP633ynl40fu3furRmwY08C6ZLE8twA7zyOeiDSryC/KMOICHP7AqVOaMOwK1hVxBP16 OGzib6suCstcO1yjcwCai0xYr2Wx53Wvyg9L0KrGh+T0P334zOym5wfDkur1bxZOXGkk b+U9E/cG30nk6RSO3sizqQyiTeZJkTqDpWW9b/5fclOe+rMJOFDABFRvFO37tCBIJboK N+pA== X-Gm-Message-State: ALoCoQlT13FjUitcTt6j2U9AyRcub1UKWEBJzEq9LRAxGU5aC3vZWxOEgrEB+dLa2g+MEfkZc717 X-Received: by 10.66.222.202 with SMTP id qo10mr52753563pac.27.1448785906252; Sun, 29 Nov 2015 00:31:46 -0800 (PST) Received: from localhost.localdomain ([124.219.30.17]) by smtp.googlemail.com with ESMTPSA id l84sm2516886pfb.15.2015.11.29.00.31.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Nov 2015 00:31:45 -0800 (PST) From: Pi-Cheng Chen To: Viresh Kumar , Matthias Brugger Cc: Daniel Kurtz , linux-mediatek@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 1/4] cpufreq: mt8173: add CPUFREQ_HAVE_GOVERNOR_PER_POLICY flag Date: Sun, 29 Nov 2015 16:31:35 +0800 Message-Id: <1448785898-17838-1-git-send-email-pi-cheng.chen@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add CPUFREQ_HAVE_GOVERNOR_PER_POLICY to have individual set of tunables for each cluster of MT8173. Signed-off-by: Pi-Cheng Chen --- drivers/cpufreq/mt8173-cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Viresh Kumar diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c index 83001dc..c438109 100644 --- a/drivers/cpufreq/mt8173-cpufreq.c +++ b/drivers/cpufreq/mt8173-cpufreq.c @@ -469,7 +469,8 @@ static int mtk_cpufreq_exit(struct cpufreq_policy *policy) } static struct cpufreq_driver mt8173_cpufreq_driver = { - .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK, + .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | + CPUFREQ_HAVE_GOVERNOR_PER_POLICY, .verify = cpufreq_generic_frequency_table_verify, .target_index = mtk_cpufreq_set_target, .get = cpufreq_generic_get,