Re: [PATCH] PM: runtime: add missed pm_request_autosuspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Sep 2010 tom.leiming@xxxxxxxxx wrote:

> From: Ming Lei <tom.leiming@xxxxxxxxx>
> 
> Commit 5789bdd542c6bfbb662915c67bffc14198aa5dda
> [PM / Runtime: Implement autosuspend support] introduces
> "autosuspend" facility for runtime PM, but misses
> helper function of pm_request_autosuspend, so add it.

I didn't add the helper function because I couldn't think of any 
places where it would be needed.  Do you have an example?


> --- a/include/linux/pm_runtime.h
> +++ b/include/linux/pm_runtime.h
> @@ -164,6 +164,11 @@ static inline int pm_request_resume(struct device *dev)
>  	return __pm_runtime_resume(dev, RPM_ASYNC);
>  }
>  
> +static inline int pm_request_autosuspend(struct device *dev)
> +{
> +	return __pm_runtime_suspend(dev, RPM_ASYNC | RPM_AUTO);
> +}
> +
>  static inline int pm_runtime_get(struct device *dev)
>  {
>  	return __pm_runtime_resume(dev, RPM_GET_PUT | RPM_ASYNC);
> 

This isn't good enough.  If you provide the function then you have to 
update the documentation file too.

Alan Stern

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux