From patchwork Wed Jun 19 11:35:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 167222 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp500409ock; Wed, 19 Jun 2019 04:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWw6wT5K+UxgIwMCRjAXaQ9pVrfK4dh2kT0MqwdJ6ioSzVQkn97Z+VVXZo6lP57LfWUsWE X-Received: by 2002:a62:1515:: with SMTP id 21mr48043959pfv.100.1560944150516; Wed, 19 Jun 2019 04:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560944150; cv=none; d=google.com; s=arc-20160816; b=Ueq/ZPa9dwkM8+PUhctfrfSV0FY5+pU3Cq4sTJIkwKXIKcChLzECBvsOW9tUlF1Fo6 525wN8RY4A8hyRBWh07+GkdVnJuYH9XW/dwMZs85BJEZidHxHYMrFseBp2/ju5ndVRjG LIwda1Eo3Zgnnj+oxDv3QQjWJNN5tAwcDU9fJ7hHTwgsEDz9HGAJvzOgmVsUr5t4FmmU JktA42rBsqS9X7VKIHnysOJJYCBfIDtWCGcdMQHG7xqI8ucFQtUZakAdGUDdVoAcoyjs cGTDJfuIm7gpbPcl4iXpSssTyBZp5r9pvpxaKJWUf4am0KSkmO3UHPsFpsw6ICtJQiFj S5gQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xTnYfqTb0OBC2laN/lIv6dOgEAubgbEVPliB3a16uOM=; b=DBevxT6FsO5ohlFLqe6OpC+7rXctoh1HQYcM/Uq0vRAjcK1V21mTZcq8GbxSG0T8WB Dq89KfyK+TVt8RGKBbnlrvi34u5tS2FSnK8WR5kIHq52COySZjQurxpPx6L3TUFYDYV/ edZB/encX/tW2sLMHOVZyQAIM8Y62b+JwY1weE91pERwP2dhIxXo52/mEwiW50QTa749 +ykX178YStmfodo2cRyMlU6xdhXvlkr7IjS5XAaKioiu2ynL7ntJWVV0LFG3cxtzSZeP rQWeWouAtuI53ZQxLUXwNmWdQnpyTrh/JEnUxeN4ixhsekrVIoBCq5I0IUk3NmyPj5rx s3qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tRaeF7GL; 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 d21si6185815pll.369.2019.06.19.04.35.50; Wed, 19 Jun 2019 04:35:50 -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=tRaeF7GL; 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 S1727458AbfFSLft (ORCPT + 11 others); Wed, 19 Jun 2019 07:35:49 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45060 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbfFSLft (ORCPT ); Wed, 19 Jun 2019 07:35:49 -0400 Received: by mail-pl1-f195.google.com with SMTP id bi6so7091679plb.12 for ; Wed, 19 Jun 2019 04:35:49 -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:mime-version :content-transfer-encoding; bh=xTnYfqTb0OBC2laN/lIv6dOgEAubgbEVPliB3a16uOM=; b=tRaeF7GL6QCrXnAixdhrtY1QzqXVvyFk9x5FcLD5r/8ehKDD62SYjbXqBpzZdmSAoB XMifUtRyH2BEKQoE9NA96VG7h75HPB/yKZcLlZnKkAVlINTnkjLlXHMzMTv6lT5MTmvb KvpIMZzJkrV+QmFMVQj33idXwLkn0pbT7HL41cgPm0i9cRnZlbQFMU/SIuUJAGP/KFSz 1e/wK5tpK7AhUtVINDYQ8xldmk/rH9fnh12pCw6oprOlnu6Z54nZLIHSMPt2KuGKH+co IVqmChrM3Rj++F89aO65fv1VnLzr6YOqvE/nalsQF/4/336JUmTxj3nLXSgLFHhW7XTc hzjQ== 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:mime-version :content-transfer-encoding; bh=xTnYfqTb0OBC2laN/lIv6dOgEAubgbEVPliB3a16uOM=; b=bFtaGu1eeyrEmniYrgQrGOU1TI9AgZbl7ZMy1aFVrhFXn61WFUBHTiB6rmioXUfDin 9d5RQh5tFX/92t30xbfkgqj4Cj+3y8D/tpJcYUZIJgat9rkxQXufK0inhoeD4LGpyrDf nsVI5GUcODwpVT0SZoki8AMORXvg6/mkv2fyxBtB3037yksh7AcR9nDb5jBoEmq22KOR UCKc753ycAy/YlDwe1uEAT9jaDwrI3GrTlY6wUMrScbO/Jodt3/9HhHHCzdq3zUtolUL Exa3mz/StOB3hdX9wHsDC1RwiGbG9pAVjg5Oh9wAhfJNCbmYL687vNMREb9AEv0di5aM eDXQ== X-Gm-Message-State: APjAAAXyfi41rclKhIfp0QkmPuuPofe7v45ggksuBwh7dbqcXEjxjH4X fkeSCbGX3nqh9fVTA+uIf4HzWA== X-Received: by 2002:a17:902:9897:: with SMTP id s23mr51526563plp.47.1560944148634; Wed, 19 Jun 2019 04:35:48 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id c130sm10691784pfc.184.2019.06.19.04.35.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 04:35:48 -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 0/6] cpufreq: cleanups Date: Wed, 19 Jun 2019 17:05:36 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Rafael, I accumulated these while reworking the freq-constraint series and it would be nice if these can get in before I send the next version of freq-constraint stuff. These are mostly cleanups and code consolidation for better management of code. Compile and boot tested only. Thanks. Viresh Kumar (6): cpufreq: Remove the redundant !setpolicy check cpufreq: Replace few CPUFREQ_CONST_LOOPS checks with has_target() cpufreq: Remove the has_target() check from notifier handler cpufreq: Use has_target() instead of !setpolicy cpufreq: Reuse cpufreq_update_current_freq() in __cpufreq_get() cpufreq: Avoid calling cpufreq_verify_current_freq() from handle_update() drivers/cpufreq/cpufreq.c | 115 +++++++++++++++++--------------------- 1 file changed, 52 insertions(+), 63 deletions(-) -- 2.21.0.rc0.269.g1a574e7a288b