From patchwork Wed Jun 19 11:35:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 167225 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp500567ock; Wed, 19 Jun 2019 04:35:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdOetpn2B0YQkgMwdDdkbcA3rQ3eT4Vs49OkLKvaBNuxVbtz1ydrNi3nu0i8/GOcHWW+J+ X-Received: by 2002:aa7:825a:: with SMTP id e26mr10610760pfn.255.1560944159595; Wed, 19 Jun 2019 04:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560944159; cv=none; d=google.com; s=arc-20160816; b=ATPEUCFT6E1DePgHzrQCJEVBfdxFxYK38m1RgpA5Dm+QRjrlrKSm8hFjxCHhvEa/o6 5c0oSri4q72xeCh50f7npEIhjW7eMqGGnxPMGFpj2quSHRMuK0coesW7iTxiGJPs7N7t OjfKEcMq/3mQpZAIv8FCP2X7XVqH3DWuCWK09cjvz1uizA5tL3nEGnn+mnHP2gBKaLfG QyS0oHer+d5KMNVSahwBlwH7HR7KRyy2/O9vNHdOWrVltetJqj/Qr2VvA3Hj56Pi2Jq6 FR8JPvDMWofKboAgE5GnpLqFF8XRKkwVkxwsPajHrW3jEO5vuilL8M6uC5/Z/M330V7w Z5AA== 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=SUQzhVyRtpgFZ3dw7RfFivV0LNUHPBdYdQyIVdE/RIY=; b=qJaQq0L5b3WvlVzigO3g1aR3ctqV/Vy+JN7lU5gglQYsLucSpW7jKB4h6etWfs6jd+ GJ2L592JG1OXq5n3w9192hHbe3SV53LGcJ+W7P0/9NS3PTl0KQ4ngiUMYG24HBX70nq6 WcAz4fP4xyuFeUO997r/bO7Q1aq5r/7FaDCb4QMEeKDijGSS7LIi3/lrn1PkgCVp/9ge 3g8jZbWu70dSvVgpRDvyfV+qQYZcwcRUtGCAi5S8AWDrMaYPp5FXBtNwlgmwJgrfzDcx KeAsVdVfGdkyKK2J2An4BhmJ+Yz7Nc9qSmWsmr1WYcoS5QWk12cE86Gg1ji5k/2P39HW 6aqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hW7YPsFm; 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 s14si1551643pgm.219.2019.06.19.04.35.59; Wed, 19 Jun 2019 04:35:59 -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=hW7YPsFm; 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 S1731703AbfFSLf5 (ORCPT + 11 others); Wed, 19 Jun 2019 07:35:57 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46331 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731694AbfFSLf5 (ORCPT ); Wed, 19 Jun 2019 07:35:57 -0400 Received: by mail-pl1-f195.google.com with SMTP id e5so7089770pls.13 for ; Wed, 19 Jun 2019 04:35:57 -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=SUQzhVyRtpgFZ3dw7RfFivV0LNUHPBdYdQyIVdE/RIY=; b=hW7YPsFmIXlK9HDgxTOiuPX+zosJRHRsgc+QRGwoFJaBdLDS/iVJg66VZe2k/a0pqO 1QmfKhYvlh0tt+01cUFwHb7vMdABTqGyxnxGLea9iB0rB7UPyqkCG7QNpmAWWePW4nZ4 yQX/HVyS9whMijJ97tR/wKPLJbahqV21Cu6g5kaLSZu+dQuqmPLjmNQCifc4YwA9E6Fx wUNTYRHB4xwiSOBUhl6Ae5WtWQMAKFjQnoCB5/KIfpb5q54cCnT89YMYMm+jVQiowJcS QJx1OcKQyDOWD1rdJ1GvIbvYjz7F9FqpwIOx3q+ZpH8/P8Pgj8oqryzDpbBntQjCqeY2 hDEw== 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=SUQzhVyRtpgFZ3dw7RfFivV0LNUHPBdYdQyIVdE/RIY=; b=BcwzJQ/Zw01eit6j2dBnrVR0g43suJ0iH4VeTU/4u0crUnZGCxquQtPz1ff41rsToW KXnjXj/0gq0Gt7fjowpewpMvpIG7yuJUr4MVWcjPIHbTd1YfifSiBk8K0vJK5Y/sBqy/ bXHzET5q/pzFvcilvdLj5iOjaqXSdMgArOvsH0qZwWoP1oVpSP7PywC3Dd2QazoAHiUk HtVlbc0Prt2XLOtBDnMLDm3aDPLT347h83oGW3KlPvowQomEj+68D/yk/day8xygPB0X GK08EReIpq5mCRkSD+0F4hCxkwI10gnEEaoHKcyxeeJdsSXxDwuN/8psnamFXC47fd+R 59vA== X-Gm-Message-State: APjAAAWm2zCXt3PTZQasU111P8Kjzv1/NHWLl+SZr8VvHPB5/owhZdUa jTTLHH3s4E+8TNiC3xOLUxNtzg== X-Received: by 2002:a17:902:4623:: with SMTP id o32mr1629125pld.112.1560944156639; Wed, 19 Jun 2019 04:35:56 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id i3sm20492174pfo.138.2019.06.19.04.35.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 04:35:56 -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 3/6] cpufreq: Remove the has_target() check from notifier handler Date: Wed, 19 Jun 2019 17:05:39 +0530 Message-Id: <4008d21f166accfb28180eb804cb8ebda6da4f4d.1560944014.git.viresh.kumar@linaro.org> 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_notify_transition() is only called for has_target() type driver and not for set_policy type, and the check is simply redundant. Remove it. 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 e59194c2c613..41ac701e324f 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -359,7 +359,7 @@ static void cpufreq_notify_transition(struct cpufreq_policy *policy, * which is not equal to what the cpufreq core thinks is * "old frequency". */ - if (has_target() && policy->cur && policy->cur != freqs->old) { + if (policy->cur && policy->cur != freqs->old) { pr_debug("Warning: CPU frequency is %u, cpufreq assumed %u kHz\n", freqs->old, policy->cur); freqs->old = policy->cur;