From patchwork Thu Jun 20 03:05:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 167281 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1492120ilk; Wed, 19 Jun 2019 20:06:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPgpsfW/vXJjg5ZdPJ8Bhqrs9Qg14J09pwqxybdjYk2+j0M4E392JyQ4fGnEuM+I/aUFHe X-Received: by 2002:a62:2cc2:: with SMTP id s185mr126227141pfs.106.1560999985688; Wed, 19 Jun 2019 20:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560999985; cv=none; d=google.com; s=arc-20160816; b=aGvD0Q6AG5vuaTxMKK+8GwvY7AJSt4mLNuCn0BcRygSUk0fzdWtLSkWFkKUnVlwe1p QaoJHcFbIbDaUGAvMJyVHMPfitSHeuRihBIaggyRCnSZ5DiN101M0YL8sFqUc9Q87g29 wsIpZmwjYOvCz6LRlGFzPmBpxX2vsT0YDU48ho7Ei7l7/gnVHeEJPfAG6MlJYDT+KUj9 1+NLKFWAL2vrgi4Qn9+lIZwHrnV29HbMqPVguZ6I9i+9EbuxrgciCvwvU2IGKGGStTgC CtrUAMEsHTXUWkcbyj/NzaqSoF9ENlWVO5GrH1jTOXgGK7jIfWzO3+ffWT5LvnOBLSUG N22w== 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=3k+ZqG6fxcx9wjJdYzN51AwwDrKWOBygZ2ckfqKNWZk=; b=zwXKEnmgGQnsiOwXr1qDFLaizlCJsJqOc5+iRNcx54gBtYCRj4ha8LVoNYVQCTohE7 ct88gV59Qf+xHYXL6JB495htfdXYz/AExLvkFCBWeALtRUdc4XyQL9iP41W1HkqkbeQR vykZ2xWOADqMG9Ef6NEBQHHWePQ+CrrmWGZQjQjP8ygyGDLRUQaZCeo0f1QjMy18oC6P 72cu8/L+3xIqBF/7PMO3C3/U8/+qtbkceiFa/45INT8acJfRARCA/LIrXWGcmilqv545 hztkUpkTaNR5KBulJ4hM4VOkxR/ApqnVt9XuXJkPvoL9vVrEVv2owZb1mUeljUv7sFF+ N/UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrJpaYTf; 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 b26si4724943pgw.202.2019.06.19.20.06.25; Wed, 19 Jun 2019 20:06:25 -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=HrJpaYTf; 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 S1731291AbfFTDGV (ORCPT + 30 others); Wed, 19 Jun 2019 23:06:21 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35512 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfFTDGV (ORCPT ); Wed, 19 Jun 2019 23:06:21 -0400 Received: by mail-pl1-f195.google.com with SMTP id p1so766806plo.2 for ; Wed, 19 Jun 2019 20:06:21 -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=3k+ZqG6fxcx9wjJdYzN51AwwDrKWOBygZ2ckfqKNWZk=; b=HrJpaYTfh5iJbgSLgstdGwcJAa1gk2U+dDIGKCefttcxJR2S9+gmgMD9cBuHOZBrbn jQAwb4Wot4lmy9hxiJmrtHn1hThMmUIg3+CT9yKxqC55sISKDNdvoJpdH2Nk/+hjuei0 mO3S8ukJFHAYeHrMHHfeaIe0X5o+j09Hl6Lwy7p4WoAVhMnBYQIEnGTJ/Q8Osw6QYOht w6wIaJ+Aj/UTaDVtoxQ1m4bSQzIoihV/m31J6jWfdIt/ht7l5HPbJQXbZoAP/O6R6U1y uJuNgGwKZ+VRFqdRy3RUra1ywpgiK96uKYtZJoVTdp0iGj2zmx02t7H+aUmLKymZ6VUt eVZA== 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=3k+ZqG6fxcx9wjJdYzN51AwwDrKWOBygZ2ckfqKNWZk=; b=hFOevfaJUXwKU0eywNg4r75mIenFZ7U/26CA2PMWoVjHZg6Mn/owiI1TCtBRWRTnMO HAB3GXpD4xT74AWk+tLKdww7CaF+ZSog3TFEALdDKkr9zlnvGcYCMrD2teu7R4wAn4rf P9bysLyoaIECoYIyjdRw1lz8OvPo8OOElreKmWiuxGaYw4Qi7SjtYceziMCJVhrPC0YO jvBWIbnOXEd/dMR9aElp10ap2A2jQPB7V+gfMjh472rpZ8WVFBCLv9hZ4oZbL9ZPWeDw KPvf1j5x5ZGIsK0ZK2NY3/ZsOe2yLoUpNb6nipDXL2L23WapvUkxzaqLo/BU9WVr6jVN eCsw== X-Gm-Message-State: APjAAAUJv9ZemvEXbHI9eQ5wrFio8rclglWSur+LRDo8Ppp0y+505wCt lK2kaStoFMaATVRnuwFV+MhjHg== X-Received: by 2002:a17:902:1003:: with SMTP id b3mr124316996pla.172.1560999980612; Wed, 19 Jun 2019 20:06:20 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id e184sm25563402pfa.169.2019.06.19.20.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 20:06:18 -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 0/5] cpufreq: cleanups Date: Thu, 20 Jun 2019 08:35:45 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. V1->V2: - Merged patch 2/6 and 3/6 (now called 2/5). - Updated commit log of 3/5 as it wasn't clear enough earlier. Viresh Kumar (5): cpufreq: Remove the redundant !setpolicy check cpufreq: Replace few CPUFREQ_CONST_LOOPS checks with has_target() 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