From patchwork Wed Jul 19 10:12:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 108260 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp664599obm; Wed, 19 Jul 2017 03:13:31 -0700 (PDT) X-Received: by 10.98.63.83 with SMTP id m80mr2203852pfa.161.1500459211076; Wed, 19 Jul 2017 03:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500459211; cv=none; d=google.com; s=arc-20160816; b=aMadkshvNwiPNTdVC6s+w2QSQLEz9rMPgOUi9z1MsiFvW9sBUkhtA9hySLHcx7hY0+ Yz5nG+2tfUKl04Apv6a+vX/vABCHtlmotZXsadCNUsFJhLMV4BBhMFylvyjUmOvp6W0v hrZaM8CFqzO/erkwpRuTO8p6hwkblIgVIeo/Czg7Yi9ZFOHxI51H9MBvrczNKmFrBx3+ 1XxbBOjZX+PYEdYutTrKUKdpVTjd/zzO/wFnMXzJWmjL4rbW/S2v2Sj/wYubcDcs9lag hk0FHFxIqwOq0HBJbbEGHO29oFEacWPk2r9dmOTpXZGyNRsdDpwqkrIcRo4P82bkBTAA nUvw== 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=cqCybcpXLY0cxkBwFZgpljmVkHlGtO8cyFu1JVIO9os=; b=JaqVckhhriqe6z0+g06Gg52W21ldttlscl9uA8GdvZACJgAMIa7VLB4bxsTIMN7opR 3OiWwvtYBLnIY1TEzCBpV7EKcUiED17I3DNfZ8bHMmW3De6GfGi8ffXq4yARmoUrXECB Pa/pOQ2rDmq6pFYRDcF8llUeHsVJO7E/z1/g8JrcvvLqxF/mmX5oxBUeSqjmF33PJqiI mKWxHxYzhgXNf+iCzWqT/9tNuHsrU1mGlFc6ysCiqeT47Kisuso1tU4u++BWNzB4sDq6 t+zhAu3h5cHIzB+f1gmCRJE0avWwbf6iS35WOlJ766NJv4tWIMg37kDyYyirCjvfhz+K kzww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=fH2iks+p; 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 44si4052476plb.248.2017.07.19.03.13.30; Wed, 19 Jul 2017 03:13:31 -0700 (PDT) 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.b=fH2iks+p; 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 S1754340AbdGSKN2 (ORCPT + 25 others); Wed, 19 Jul 2017 06:13:28 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:35240 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754255AbdGSKNX (ORCPT ); Wed, 19 Jul 2017 06:13:23 -0400 Received: by mail-pg0-f51.google.com with SMTP id v190so28708245pgv.2 for ; Wed, 19 Jul 2017 03:13:23 -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=cqCybcpXLY0cxkBwFZgpljmVkHlGtO8cyFu1JVIO9os=; b=fH2iks+p0dgCGjjiVET+pS+qJvyXTplSgx2uNSZ3i0IQGihXVArQUkChCtVcAk8ZOU oQYvHcHEWJNqkX4sdtmm0h491DAUSwBFnQpbtFedck0VGCd7ghR0Sn2zzPmNqvI6xW8D kSsTmFdBovhsNxHIAYjRH1CyOBP2b8cgjiMzQ= 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=cqCybcpXLY0cxkBwFZgpljmVkHlGtO8cyFu1JVIO9os=; b=SDUirplQ21+r1oKySgiL7DUYDm7oQ9kLYcKJhEjydbkmmo3LD5/rOScmdRemxGbV79 +f1s0HaCscFKdm4NhJRuwKZIrtpKQoHJh0Q7LspeBUMKMCntwMKUyV/kV0NN7LkOiKug wQX0+3y1Y+7fkScQa6l2t7nduusvRqk6NEJCo9TBAWtfBJ3rV3+XZEuvF/UIvJ4FIXQM tPUMXgyHOMwiMWocrVmG57DNXSKiFpB2jBQlmX+XNmt/GO3Ouc0+VrDi7u8GxPGJAxZZ YOKeyuC7IlIR+4o6jVO8KG+ASYMDbdBnWcSYP7CvdaXygD7aatW+l5MMbPrGRsI0QhfF EKpA== X-Gm-Message-State: AIVw113W5NGo/KiZB3tzjremF76TFuDuyd8JCFJzMrmb2qQSVMXuQqep m7TZzKf+uCuPgMPq X-Received: by 10.84.142.129 with SMTP id 1mr2542998plx.10.1500459203386; Wed, 19 Jul 2017 03:13:23 -0700 (PDT) Received: from localhost ([122.167.171.93]) by smtp.gmail.com with ESMTPSA id e15sm9799829pfh.81.2017.07.19.03.13.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jul 2017 03:13:22 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Srinivas Pandruvada , Len Brown , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux@dominikbrodowski.net, linux-kernel@vger.kernel.org Subject: [PATCH V3 4/9] cpufreq: Don't set transition_latency for setpolicy drivers Date: Wed, 19 Jul 2017 15:42:44 +0530 Message-Id: <8f030aa6194cf1e67306f929e993e36971d1257b.1500373914.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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The transition_latency field isn't used for drivers with ->setpolicy() callback present and there is no point setting it from the drivers. Signed-off-by: Viresh Kumar --- drivers/cpufreq/intel_pstate.c | 1 - drivers/cpufreq/longrun.c | 1 - 2 files changed, 2 deletions(-) -- 2.13.0.71.gd7076ec9c9cb diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index b7fb8b7c980d..c1100a3e3325 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -2138,7 +2138,6 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy) if (ret) return ret; - policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; if (IS_ENABLED(CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE)) policy->policy = CPUFREQ_POLICY_PERFORMANCE; else diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c index 074971b12635..542aa9adba1a 100644 --- a/drivers/cpufreq/longrun.c +++ b/drivers/cpufreq/longrun.c @@ -270,7 +270,6 @@ static int longrun_cpu_init(struct cpufreq_policy *policy) /* cpuinfo and default policy values */ policy->cpuinfo.min_freq = longrun_low_freq; policy->cpuinfo.max_freq = longrun_high_freq; - policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; longrun_get_policy(policy); return 0;