From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 01/27] PM: Add helper pm_runtime_last_busy_and_autosuspend() Date: Wed, 24 Sep 2014 19:54:10 +0200 Message-ID: <20140924175410.GC1231@amd> References: <1411575342-31048-1-git-send-email-vinod.koul@intel.com> <1411575342-31048-2-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1411575342-31048-2-git-send-email-vinod.koul@intel.com> Sender: linux-doc-owner@vger.kernel.org To: Vinod Koul Cc: linux-kernel@vger.kernel.org, subhransu.s.prusty@intel.com, "Rafael J. Wysocki" , Len Brown , Randy Dunlap , Ulf Hansson , Alan Stern , linux-pm@vger.kernel.org, linux-doc@vger.kernel.org List-Id: linux-pm@vger.kernel.org On Wed 2014-09-24 21:44:51, Vinod Koul wrote: > From: Subhransu S. Prusty > > pm_runtime_mark_last_busy and pm_runtime_put_autosuspend are used together > in quite a lot of places. Add a helper for these. > Also updated Documentation for this With function name as long as the implementation... I'm not sure if this is good helper :-). Pavel > +static inline int pm_runtime_last_busy_and_autosuspend(struct device *dev) > +{ > + pm_runtime_mark_last_busy(dev); > + return pm_runtime_put_autosuspend(dev); > +} -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html