From patchwork Wed May 17 04:40:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 99899 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp63282qge; Tue, 16 May 2017 21:40:56 -0700 (PDT) X-Received: by 10.84.215.155 with SMTP id l27mr1887814pli.31.1494996056522; Tue, 16 May 2017 21:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494996056; cv=none; d=google.com; s=arc-20160816; b=EDxR05kzAezmZJGCEs1Kzw1X84dUBUunDrxQajrmLNyp8jDiyFClf0ZPTCw2fLGq5G cR9jckXV9jaEJrtkds4wxOQAYjTMizzFC7HfOwApGn9OFyD8zQlR7eEpO4k45X+H4JTZ Ix//XNCbIK+PWKKz+D1zJyQk30BrUvJvYxD3ZkIVnX96p2nYbFqNTEyRIrPoj/LgDDqq JnSubMulHa1UMxp9VDiKJrnrgateQtOBCUoxnxSPumN5xZvK5ABXus4gXLkO14lP6r01 amuiI8xU57oKoYjBQum5+UUd/TbK9JNSgxBcTL0K8UjuL57nm8Op54I50wjACTTlUmCB JoRw== 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=rYZP3bD261XdmSZNVKhI3uhIUILB5X6GDNl1+P5k+F4=; b=Cc7T44cuh84BiLiOTpcIUM3Q7Kjo7lfun9fEmgD7IYQrvbTla9+yZSFaGa4SOf7nbg 7gMR305IbYRJoUSk8ZDTDSOWCspBNzp5SAlrwwdP2oFACfOE112RFMwLU1GP/xwUu3fC HnVVZU2AqWtjxM5alztEn180a2EkYgck4iruClirZ5c/hxWWJ+X9ElXl/7X85A5IeoES Q0HREXXB/TqPkHfLZmIw5iAZKrwZ8UcaDC0gGDS6vT80hRZvWpOe2ErIZNwP2TjurkmQ rx5LSJyjTrprdgAkedFebsMR9zWNoh1oeicDRG6R5OF0qYLwjnTuyFeA6BL4N4eijmCo NkGg== 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 z71si981175pff.68.2017.05.16.21.40.56; Tue, 16 May 2017 21:40:56 -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 S1751337AbdEQEkx (ORCPT + 14 others); Wed, 17 May 2017 00:40:53 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:36103 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbdEQEkx (ORCPT ); Wed, 17 May 2017 00:40:53 -0400 Received: by mail-pf0-f179.google.com with SMTP id m17so1007507pfg.3 for ; Tue, 16 May 2017 21:40:52 -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=rYZP3bD261XdmSZNVKhI3uhIUILB5X6GDNl1+P5k+F4=; b=ar3Ixo9+l18PyfHwTzcBSMuSdk8lU9GwIJB8+cbKSJlKxcdak1Y9Wxp2n/caXO6Pjn 86PoryZxbZcDZSHbodbAdEnLrxvONnPRLQxWBEUDzswGwLy86S/sqfIspMMNzFDvKOPl dXSnSYZy78/CO0flABloB1L3FA+UhIUhgxHW8= 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=rYZP3bD261XdmSZNVKhI3uhIUILB5X6GDNl1+P5k+F4=; b=mo1MiWKZsNrL9kD+vwegmm0xAD5OrtzI7S/5ddeBITUm8SnS0KTbVHDuxWULQ1U2wc llE6u/DSXxbElFbMMSEeyVDtnBhJrigt+9PH7dT/SP3WI0l7Egyg8AaMQn7jTMzIbOhI VobXnxykI46Knuj4CgD4ZT4Dp9bvAfp5AIbA2XHb+9aQFJ3kQopbAUBA8GpgUJdDaXU6 Lv8NqyjmU7SUiBPUPmpf/f6fALUOn67pQlGT3H9bbybIMSeS3tM5uNxs+H/+nFrpayAS WfTkoe388CEyDY6O5gmiemkiVw3aLR0FgVnpqvMmfDwjTJtjC0hXD5CWC1Po8Uw2W1x4 pFsg== X-Gm-Message-State: AODbwcB6FOpngbOQx0Ks/b77CxBAhbUjDp1sMBtG2l3B0tvlKJeOsRzF fIqBqyE7Bej/Mem1 X-Received: by 10.99.130.73 with SMTP id w70mr1669952pgd.119.1494996052421; Tue, 16 May 2017 21:40:52 -0700 (PDT) Received: from localhost ([122.172.129.253]) by smtp.gmail.com with ESMTPSA id l186sm1072269pgd.42.2017.05.16.21.40.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 21:40:51 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , Viresh Kumar Subject: [PATCH 0/4] PM / OPP: Minor cleanups Date: Wed, 17 May 2017 10:10:31 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.303.g4ebf3021692d 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. 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 | 6 +-- drivers/base/power/opp/of.c | 11 ++++- 3 files changed, 49 insertions(+), 55 deletions(-) -- 2.13.0.303.g4ebf3021692d Reviewed-by: Stephen Boyd