From patchwork Thu Jun 20 03:05:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 167282 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1492145ilk; Wed, 19 Jun 2019 20:06:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD13phjb3+TtcV19C3FiqxVZhFx1ubRzXAbPyMUI+3BgOgOzcL8eVIRRVs6dP0u3VcYZTj X-Received: by 2002:a62:1750:: with SMTP id 77mr60613294pfx.172.1560999987050; Wed, 19 Jun 2019 20:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560999987; cv=none; d=google.com; s=arc-20160816; b=imi/eVmO36uDhisV8+URwdePzrHpmx6kVA41TDcJ3KEEwWMsA4xUyUducWACrZSpko 2kKO/QuzrZ9YA6kjXNrIBxdbcVKNxdtSewM4/ICX2gx/bvp0L4oRB0hw8g6yJMaRyQVm pYYhIC7pjP/s9pT9AIpUdarleS82iBFKSMevEHMFA04J2NaXO9VoZJV1xhEzxlVcMjZP CFefVW12byH7tRzlyP63uRBoo3uo4vosakJsm3z5fyK0F6KzJBEtn1ebB/sGMotC+T+r bcGNrHOjg3+XPH/aIcLfneOrMYT+OUTO9wFGUsf/Zv0S2j/Pq6oIzHI7faFvng2cjI2/ O7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FbHOn34+83W+J2f3XHDBG84b3Et0zmkMSETpfTN9TuM=; b=V/2hN5W7vDiURb+9TeuTf5xlFS50GG9fETsA1MIFuX4zBe2I+1zxea8d1k9kITnth8 ajD1vYl0EBU9JzYLr8QOasY+qmZxYOvi/NgIjIfccS3KFQZ4NoAKXrxOXz9z0AB1hFnf MoDjKasu2nEgdJNapgxQXnPAJD7FDdDY9ofSF70vUHA6X5I3FkRjxQ9jHQ03MZbpZzJF X9vIj3saDAJ1cuCR8HgHhSCB/cT+uRbaXY/ERHIEP6jesqt9gH7R9utxEHeIzTWiU+Bu AtIuRpeQkasYHNrbSPpJ9jcogcUU+0tXfCW+sQyJldkJ4M5kRizZO7pr88e931mh6vaZ MiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UT17hYIw; 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 b26si4724943pgw.202.2019.06.19.20.06.26; Wed, 19 Jun 2019 20:06:27 -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.s=google header.b=UT17hYIw; 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 S1731307AbfFTDGY (ORCPT + 11 others); Wed, 19 Jun 2019 23:06:24 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44121 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731303AbfFTDGY (ORCPT ); Wed, 19 Jun 2019 23:06:24 -0400 Received: by mail-pg1-f193.google.com with SMTP id n2so747518pgp.11 for ; Wed, 19 Jun 2019 20:06:24 -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 :mime-version:content-transfer-encoding; bh=FbHOn34+83W+J2f3XHDBG84b3Et0zmkMSETpfTN9TuM=; b=UT17hYIwO07T+JXmCNzUy25KZuNg7TFnGECmDQriV9z5Zc5iK/562PnnVfxwrM6+/z NN9S6GFPYLifZ84Wh7XCcbJGNkV5Y7UWS40WSuZzMCL7Z0Qt34GwRoKObd+F35Ng7MKB D1UOxmySiMuh5cLXRmvJ0EuTneYj6dlX84Fg5tPOac5vsS/WUkniFmlUUTY2F8CnwDM1 NrPVz78uVqELIPnN25wEg7YF4YXExqJvtPk8NbE+K8yrNvtiY47q8cUYa8GpX0KWbK4i ded7OAYwOaUzU6wiTK/rOLNSus+CjQO6rUy5BKlxEdZn8ZA3EkBVeMThnnUkTQDmTfrb OLrg== 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=FbHOn34+83W+J2f3XHDBG84b3Et0zmkMSETpfTN9TuM=; b=pU+OEoPMf6C4HnLByy3enS+sDHRXcmV7MR5Gy0PM/UxaCApB1pgh/EQ6u5X14fFvoK nZa5nhUrtM2zqCu5dqEpoEtH5dWYlHasl79FBFp/aEN02PECsM/mTbkko8rya2pt7djO YnkP55ctJJm7edjxmTONusjaBwKUE2P6Lv5q+nrBYHdcaTc5h/eQIsTB3X1ujNZg2RKw +LqGMadEu+a2dPFN7lvyIyNpKSG3vRvVHLK8v/NreAKiLwkJFa9xMb8p8rozw1tVgcSt 5dvQMvUBzrq8KX5lWitCDL5qYK4XJyhF/X0jRL9pMGOchbMiholFNLlqrsCdC/wqgguM rkHg== X-Gm-Message-State: APjAAAWB9a5oUZ3m4YKjNNDNNcdcrd/leA1XjuohmnXgQ7VYWsdMEcpw stt9X4y/518lT70CqboQurR56/ixwVA= X-Received: by 2002:a62:28b:: with SMTP id 133mr5409487pfc.251.1560999983761; Wed, 19 Jun 2019 20:06:23 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id g2sm18949048pgi.92.2019.06.19.20.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 20:06:23 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH V2 1/5] cpufreq: Remove the redundant !setpolicy check Date: Thu, 20 Jun 2019 08:35:46 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org cpufreq_start_governor() is only called for !setpolicy case, checking it again is not required. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0.rc0.269.g1a574e7a288b diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 85ff958e01f1..54befd775bd6 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2153,7 +2153,7 @@ static int cpufreq_start_governor(struct cpufreq_policy *policy) pr_debug("%s: for CPU %u\n", __func__, policy->cpu); - if (cpufreq_driver->get && !cpufreq_driver->setpolicy) + if (cpufreq_driver->get) cpufreq_update_current_freq(policy); if (policy->governor->start) {