From patchwork Tue May 23 04:01:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 100347 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp137882qge; Mon, 22 May 2017 21:01:53 -0700 (PDT) X-Received: by 10.99.37.198 with SMTP id l189mr29792842pgl.102.1495512113887; Mon, 22 May 2017 21:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495512113; cv=none; d=google.com; s=arc-20160816; b=hXDU4xg4I4CDmFZPy+HUgAeOKWCCJ5BIzB+rx5iVG1L/4JAXfqGH3NTFcT70/nuHRU qeaQfoGWYsTjrQ/9WQHLZ2Rl3r7WeJY0SVEmhI9ZsRjyk6IL4AFTIxwJALwg2a4O+QX/ gKg1FP4pa9uRco3s4BGyk+K1XgrPCLYwq0FN3nQ9L1uMH50dZkVVWY4LEXXaGphY477j PSukb04RXRuBQen/PBlDx5qI3en6KBj9hjVm9wW0HM4K/aUOQ8jSbyA33oI5Hbgi35Kq pnPCclgcfgJj6Q97tGgkRQxgjGNgfkg3m/lQHe2qq7ptkqnjHfUN+7J8P2vCjgOKIG8X /X4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Kjvg5gN4M1k6Peb1DIMtzYJekr8zXu5Va15HaYGIxJ4=; b=Ik0pvBCOJzl5A/YouN8GNERA+5WJspqSiY0ccDpdohn/kNVZ2arlY58DBcsUq3jSds h+TuUr9mb/IRtyQg8Gwxcz/pC4jG8GwLfUTSy+BI3jdWplfz4mDmSlofI736kbRnis8+ P/Iw65DaEv4s7ohSawbZdRmCuTqVjdqkoYq8es80cTxEEwWzLjuwtt0TWXfIBjSMSp0d 6k8qrSE9uoRjqrEXfj/i+ka7DuJmQrKNFqgd5H4fRM1av4a4OgsAdlwzGwpQhzEbBq/S GgB/5WKW6E/R7DLKSOcdQtaWd3rfs8VnC8Z2NvPtxGhVpE10ZE5XQ3TjbbkrQ0OycQqT GXHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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 z5si19514707pgn.94.2017.05.22.21.01.53; Mon, 22 May 2017 21:01:53 -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; 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 S1750740AbdEWEBw (ORCPT + 14 others); Tue, 23 May 2017 00:01:52 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:35987 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712AbdEWEBv (ORCPT ); Tue, 23 May 2017 00:01:51 -0400 Received: by mail-pf0-f169.google.com with SMTP id m17so101250751pfg.3 for ; Mon, 22 May 2017 21:01: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; bh=Kjvg5gN4M1k6Peb1DIMtzYJekr8zXu5Va15HaYGIxJ4=; b=E19dKGT2xGIDPhXZKKNjcMUtUGfeu945D++VX6Wcz7C9RV52XbJgPyRgf8fydUqLb1 sAtpcCeFdw+Z9KzqLFvN6cpWbBTM9rWpUHMeCKEKKNeA9RBvE01RIM1aq8dzzQO+7jRf SE36/+/pm8RhO07naHR/zbrGaAqYAE3Fru8Bk= 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; bh=Kjvg5gN4M1k6Peb1DIMtzYJekr8zXu5Va15HaYGIxJ4=; b=pFPMV7v27d41pSIveKhs0szXdJhviPisSCigEH/ROM1C1yQMWPpj/WdZb/Lpkvcp5f rfF+6Fz1k0Dpj4ExMjZq9+MxFcELSpec11neSIPwIohbTnAKnGhe9nvfHQQCUv2BSw69 Ysgve7XMb08UQDuZctnAdFHVIc+sDgokodBYsI9d3U1iPYzYd9AES/fHtcxTOE6ZXmYx 8KiJ1mw/vzDT5+VeyU9ORc0VUNE2pQ9XHeLC/ezzdOJVRFRRVdauTodonY8dyeQOJ2Ut FOS/+DY/CYST4hfh4qnGeyDQis5GwEbhsLbQ+++GYDKYxWN/QUKrQT1i96txZpqCdS4q Eefg== X-Gm-Message-State: AODbwcBiuWx1cXm0EDmfpgF/UJprtDHnVNz4pjXkxHXB8RdIEGa6LK4D mRrg6kOnKzINZQg/ X-Received: by 10.98.151.2 with SMTP id n2mr29631501pfe.29.1495512110758; Mon, 22 May 2017 21:01:50 -0700 (PDT) Received: from localhost ([122.167.143.58]) by smtp.gmail.com with ESMTPSA id r68sm33581903pfd.91.2017.05.22.21.01.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 21:01:49 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot Subject: [PATCH V2 0/4] PM / OPP: Minor cleanups Date: Tue, 23 May 2017 09:31:41 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.70.g6367777092d9 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, Here are few cleanup patches for the OPP core. The first two simplify the code that was written specifically due to the limitations that we had because of RCUs. We don't RCUs anymore and this can be simplified. The last two take care of specific corner cases. Rebased over pm/linux-next and tested on Exynos dual core board. V1->V2: - Some RBY from Stephen - s/while/for/ for one of the loops - Dropped a comment and fixed an error message - opp-table marked as const in one of the place. Viresh Kumar (4): PM / OPP: Reorganize _generic_set_opp_regulator() PM / OPP: Don't create copy of regulators unnecessarily PM / OPP: opp-microvolt is not optional if regulators are set PM / OPP: Don't create debugfs "supply-0" directory unnecessarily drivers/base/power/opp/core.c | 87 +++++++++++++++++----------------------- drivers/base/power/opp/debugfs.c | 7 ++-- drivers/base/power/opp/of.c | 10 ++++- 3 files changed, 48 insertions(+), 56 deletions(-) -- 2.13.0.70.g6367777092d9 Reviewed-by: Stephen Boyd