lkml.org 
[lkml]   [2010]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] PM / Runtime: Add sysfs switch for disabling device run-time PM
On Mon, Jan 18, 2010 at 01:29:55AM +0100, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
> Subject: PM / Runtime: Add sysfs switch for disabling device run-time PM
>
> Add new device sysfs attribute, power/runtime, allowing the user
> space to block the run-time power management of the device. If this
> attribute is set to "disabled", the driver of the device won't be
> able to enable run-time power management for it (without breaking the
> rules).
>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
> drivers/base/power/power.h | 4 +
> drivers/base/power/runtime.c | 107 +++++++++++++++++++++++++++++++++----------
> drivers/base/power/sysfs.c | 46 ++++++++++++++++++
> include/linux/pm.h | 1
> include/linux/pm_runtime.h | 11 +---
> 5 files changed, 139 insertions(+), 30 deletions(-)

You forgot to also add an entry into Documentation/ABI/ for when you
add/change a sysfs file :)

thanks,

greg k-h


\
 
 \ /
  Last update: 2010-01-20 04:21    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean