From patchwork Wed Jun 19 11:35:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 167223 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp500487ock; Wed, 19 Jun 2019 04:35:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtg2TPRSrEiNYavL+XsHKekvdmE9w7jfgM+7+731GFdiOSS2X3g+Xe+QRzcmb4PMbcPEvk X-Received: by 2002:a65:5302:: with SMTP id m2mr7334557pgq.369.1560944155390; Wed, 19 Jun 2019 04:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560944155; cv=none; d=google.com; s=arc-20160816; b=GFUwYmwQ2+jTiXhwUQw81h/mZmGgNENTPzpPeg+1IXhxqdh9sYj9cC4UcSbeEHlOmI i0tH2g1K0cdIEGjKyY4bru6UR9kkvdHSFV0aojUwDq987NNVFq4SRmq7zdxIe+Mun2m4 7D2pWD3i0l2CkOvoPXJAY95YCd+wrmSustARmthDV6veqM0IqJZEj2/XUjLugsZYgw3N /CPbJo7pieP0Vihb8oQ3QCNjNcDXDamlE1fLSM9qn2Flw5dimiPUvLx3hN0g5dr1wo/Q p8viePFROVfQHzKT+qLIzsZauakFSNPKqfH3G1xIbcapbNKhaUhgRYclVMeTq1bRL0Nr jXfw== 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=ryWiI/pcnnNRC5X4mS4C89wQduacz5qjzVx4L/lltqdH/JrXtiqE37UgvALEV0OBRD 52KP1gAUnRcGC1HQ6NkBKuubRLen9nwLcXcmglhTecSJCjvqsNgZb0zf1oSXcDxwrwVg m34SzBX3Ybis9dmg2V/GaFXTMIkBw7hKJyeyqEdaQsEVLl16XmlQ23DG44NbJKW7i638 K3mp/hH0Fd2C3g8y85HfKqfFMLBmzjQ/EZ2r/9DiWWACz8O5D6bfep4fIomImKApU9U1 7U7X+9fCqj/4BU9KiKHLnOugC39F+0QICSYP3clxSs4n3xLKj57VyEpP4U8n2RUi1y60 diSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kxQEEkAR; 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 p5si14892887pls.163.2019.06.19.04.35.55; Wed, 19 Jun 2019 04:35:55 -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.s=google header.b=kxQEEkAR; 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 S1731689AbfFSLfx (ORCPT + 30 others); Wed, 19 Jun 2019 07:35:53 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33276 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731678AbfFSLfw (ORCPT ); Wed, 19 Jun 2019 07:35:52 -0400 Received: by mail-pf1-f196.google.com with SMTP id x15so9598014pfq.0 for ; Wed, 19 Jun 2019 04:35:51 -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=kxQEEkARyeojCDFzYuUzvewk7k5NUoW6fOXRw1fAAx6pBEVaVHsSoG8181u8HnoUQR HCjSIYu4FDMdSwO9QBQ93ghJTvXQDRKOrxOtSZOl5PhFiiFU6XwXd5O8bak1li6slYht j7bdEzNIX25FMM2uw48OrNOWIXoFOwV4QbyMGJ2c5X6VGC1byZeaSeNgniZzuomvyMeP wg/5VA9N7vddpB/zl4Gn4MzYwj8Opeas3K04pBMwCaHvvk44VigdHc70Ckg6SH1QfY2F LI2WDPgEQokwMwp8Kj9Uzpoz+jkMOtbJ1IjU9IwjcE33zLlMikRaHo66K67Qmri+abuV 2dYA== 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=jLTpwhytZTkeKX39dCqVC8UvIojESPVTT0DfoXqf1f3ORK7SfiV0E9yHnCHuuWMbJu doI8pJSFJfxFNSpN9k830S8C4Qly8HrYdmhFPCiYMJIaDJw700x+dHzeBAnoy2PSdKp/ JM3ty4YPC7tDtcSkF2ZuL+TcRuVyrhM20e0/297y2CkMfTFOgMemUYKuGz6G1asyahvV Csmn4ocBZeJ1KrGXP5dF5aSszV2jESTRre1S3yPIbGTq+cnDnVbj2dK5MlekcNzmZ2Aj y4U9X0w4hNA2G7jynH/wkmCt0TvYbtY4P3mPTX+Jprui4Yzpni43L4GcduMNo1pzOzr7 +PgQ== X-Gm-Message-State: APjAAAUl36Vk40l2rVf6LmZTKzeXOL5zbb7YIgckiB4GsY0KvIYIdRyQ VT9vYFE08pGeTyoDgSiksHdjXQ== X-Received: by 2002:a62:2b81:: with SMTP id r123mr82588812pfr.108.1560944151327; Wed, 19 Jun 2019 04:35:51 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id y22sm38252952pgj.38.2019.06.19.04.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 04:35:50 -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 1/6] cpufreq: Remove the redundant !setpolicy check Date: Wed, 19 Jun 2019 17:05:37 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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) {