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: 9851251 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D00E9602C8 for ; Wed, 19 Jul 2017 10:14:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C272C2811E for ; Wed, 19 Jul 2017 10:14:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B590E2863E; Wed, 19 Jul 2017 10:14:38 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 7B20D2811E for ; Wed, 19 Jul 2017 10:14:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754296AbdGSKN1 (ORCPT ); Wed, 19 Jul 2017 06:13:27 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:33504 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754249AbdGSKNX (ORCPT ); Wed, 19 Jul 2017 06:13:23 -0400 Received: by mail-pg0-f44.google.com with SMTP id k14so28722323pgr.0 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=kQo0IvkJ+AqT1RMkFkJDzlTheFTi09NKIx6e17WsHMFn3bgWHezaEIau6r4HSn7TLP 5Tq3HrARfOtf7xfrAqhSxWPaqs/TihgYKNJlrBWwC480rBtypR4Pm4pcBjVV6iQ7IY3t VMf+e8hZVydPjqc2HzrwWcal9vMCQPl7MDM+KzOZQ+4woDSgW/INZT/KaDyaruXMsMnV BsbpsuO2b1/ud3pIj5wRuBb5shuoEUMCDTC9F6jp2ailwJS+rcGx1H59qeRNwEHxiHLQ /HAlhGhJ7OMI+vVrPePyF5+IVssGJJ8hOuQtkB61rHAOMWzysIBjai+tOmyuiG4aCQaz LHXw== X-Gm-Message-State: AIVw111HO7rgLUmFBFd6JCmbtz22l0VALt8lVTNyp5v0oj3r8S735kP+ HvuzzYGPvjhjwXcc 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;