From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965413AbcJYDqB (ORCPT ); Mon, 24 Oct 2016 23:46:01 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34075 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752169AbcJYDp6 (ORCPT ); Mon, 24 Oct 2016 23:45:58 -0400 Date: Tue, 25 Oct 2016 09:15:54 +0530 From: Viresh Kumar To: Stephen Boyd Cc: Rafael Wysocki , nm@ti.com, Viresh Kumar , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , robh@kernel.org, d-gerlach@ti.com, broonie@kernel.org Subject: Re: [PATCH V2 4/8] PM / OPP: Pass struct dev_pm_opp_supply to _set_opp_voltage() Message-ID: <20161025034554.GB9162@vireshk-i7> References: <5f5f81da4b9773854fba72359cb911d2660e2957.1476952750.git.viresh.kumar@linaro.org> <20161024231453.GS26139@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161024231453.GS26139@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-10-16, 16:14, Stephen Boyd wrote: > On 10/20, Viresh Kumar wrote: > > Pass the entire supply structure instead of all of its fields. > > > > Signed-off-by: Viresh Kumar > > --- > > This patch should be combined with the previous one. I think it is a fair to do this separately as this is a completely different logical change. > I'm still > not sure if it even makes sense to do this though. :) > Do we really > have to make duplicate "OPP snapshot" structures just because of > how OPPs use RCU? I agree. With RCU, yes this change is probably required. But I am not sure if RCU fits that well to OPP core anymore. A rw-lock may be much easier to help. -- viresh