From patchwork Thu Jun 29 10:59:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 106630 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp4554488obb; Thu, 29 Jun 2017 04:00:19 -0700 (PDT) X-Received: by 10.98.14.130 with SMTP id 2mr16107840pfo.218.1498734019532; Thu, 29 Jun 2017 04:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498734019; cv=none; d=google.com; s=arc-20160816; b=pR+uEp/H/i6V+tkzYwD/pa7Ocn8N8R/LtcdUxOTovkzM6hDk5Eb0oeUyqOzL6/v7BX z1qfVj7H+ro58hkq9aMPyB1Lh0mJQntIEsCxHSOYw9NVEblOSVc/9RvifmZj3hrYm2UV ujPYJrkzg4T37y3GVBMa55jyNpQlce0Mse94k8zDHEmCr/kOJydzGvKw5NHIIDI3Oc2T fN+LA65lP402VnPRuTf1GDsKg0NNfJFOkmchaIU/noCnp59BILwHKyhOyE5ZWjdrG73F iR78qBucLtttJlAaEplTM3PiVBFUcu/0LMDE7GU03E4WJnI16+RFBkXIxf4yn1FZTJYV gSQQ== 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 :arc-authentication-results; bh=ZpS7jWqMqi8s3ETI7+Xp7hSqbXO9sF0SbgmI/BCVAgY=; b=opdkT7zgN89Sbiq2XEFkQVW0UCYOKaYU0EV7JQsp2M/Vv7ld1KVVdGOJFcKnmDC8dW TRk+RhRfu3ww+yjIjMojmvTwg1o5HasHgJCuSyuHPu1EoJJa3x0QeZZPpSMwCl/gi9vj ite2G0phK1pfIN5PziCLMGBrKK9lGwmUBBOMiO8K/JetLZUWJZrkCq6eUaOEANflUkmE rWanskXbIgB2wpq/eGP1nA5p5EN8wi5+vC/fTg4HFlGq7GExL+b3/iVe1HXbOiA1CHs6 nfo1H2Td9nkVy9xHbEwqTvf4hYvLv/30SP0SO5sfPU+le/wnZP8WlBAJyj/i0a/ltb3i vV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=e2miLbh/; 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; 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 73si4037945pld.428.2017.06.29.04.00.18; Thu, 29 Jun 2017 04:00:19 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=e2miLbh/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752593AbdF2LAH (ORCPT + 14 others); Thu, 29 Jun 2017 07:00:07 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:35588 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752689AbdF2K7d (ORCPT ); Thu, 29 Jun 2017 06:59:33 -0400 Received: by mail-pg0-f42.google.com with SMTP id j186so46255610pge.2 for ; Thu, 29 Jun 2017 03:59:32 -0700 (PDT) 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=ZpS7jWqMqi8s3ETI7+Xp7hSqbXO9sF0SbgmI/BCVAgY=; b=e2miLbh/tWwdNy10tXLb/hvWFmJ7X4IiyCkkpQCXXiMmIl2J6VVazGHwPyLCcc9ESX f+zdPIKq+SQ3Vb23B/XmKJDXF7qjUesBgbRoHtJpWW6dcACOCA7FYNf8/83C6TwrtcMi Hdj6hU7GOF0GDllI9CKStT7wmY/DcT9Rglv0c= 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=ZpS7jWqMqi8s3ETI7+Xp7hSqbXO9sF0SbgmI/BCVAgY=; b=cXEple3VmMNbwRmem5zOc+4UyJB2FWhN82Oolp92h4q+7TTGQoi14BMSVVHapqIbyA E1acsKKzOgNP7JmnjtIA+faYL7EHrE15RV59B0THKeqhrKO8PO3OeyF9e32yzOvxfmc7 yiIfOJVwqekOuy64HnthwQjn5T5tmYoQdC7DuMhZROq8/Tfo/PtqAJEu6iJkkH/KuKUC B4ZkkkHJv40FDwvuq+HzZl1QUSq4RDciSjWCbm1aRPf1OoGDPCOYSkamanE0peFWHsj/ JVDyuUqag0HHuos4sRlqlzJtKPZ+YINx2zhB5x5is/Tl7zNOwdA5cGuIDG/obZ4m9ouI 3CgQ== X-Gm-Message-State: AKS2vOzpTNSjGdyr8Rnbnky1xM8bjHuegSu66pOppBNwyOGYjNIbQ8DQ 5zT+4MVEK+dPcuZsVHGeZQ== X-Received: by 10.99.62.65 with SMTP id l62mr15285634pga.106.1498733972463; Thu, 29 Jun 2017 03:59:32 -0700 (PDT) Received: from localhost ([122.171.238.149]) by smtp.gmail.com with ESMTPSA id l4sm8336090pgn.34.2017.06.29.03.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2017 03:59:31 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar , Sudeep Holla Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH 6/6] cpufreq: arm_big_little: Make ->get_transition_latency() mandatory Date: Thu, 29 Jun 2017 16:29:09 +0530 Message-Id: <2397694de67a66309815b7e38d5888f140a0f336.1498733506.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org All users of arm_big_little driver are defining it and there is no need to keep it optional. Make it mandatory. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.13.0.71.gd7076ec9c9cb diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 418042201e6d..d1eb2a53b61f 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -483,11 +483,8 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) return ret; } - if (arm_bL_ops->get_transition_latency) - policy->cpuinfo.transition_latency = - arm_bL_ops->get_transition_latency(cpu_dev); - else - policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; + policy->cpuinfo.transition_latency = + arm_bL_ops->get_transition_latency(cpu_dev); if (is_bL_switching_enabled()) per_cpu(cpu_last_req_freq, policy->cpu) = clk_get_cpu_rate(policy->cpu); @@ -622,7 +619,8 @@ int bL_cpufreq_register(struct cpufreq_arm_bL_ops *ops) return -EBUSY; } - if (!ops || !strlen(ops->name) || !ops->init_opp_table) { + if (!ops || !strlen(ops->name) || !ops->init_opp_table || + !ops->get_transition_latency) { pr_err("%s: Invalid arm_bL_ops, exiting\n", __func__); return -ENODEV; }