lkml.org 
[lkml]   [2010]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] pm: Add runtime PM statistics to sysfs
From
2010/7/9 Arjan van de Ven <arjan@infradead.org>:
> From: Arjan van de Ven <arjan@linux.intel.com>
> diff --git a/include/linux/pm.h b/include/linux/pm.h
> index 8e258c7..dca597f 100644
> --- a/include/linux/pm.h
> +++ b/include/linux/pm.h
> @@ -476,9 +476,15 @@ struct dev_pm_info {
>        enum rpm_request        request;
>        enum rpm_status         runtime_status;
>        int                     runtime_error;
> +       unsigned long           active_jiffies;
> +       unsigned long           suspended_jiffies;
> +       unsigned long           accounting_timestamp;
>  #endif
>  };

USB subsystem has implemented the function already, and only two variables
are enough to do the statistics. Suggest you to make a reference to usb
implementation, maybe sizeof(unsigned long) bytes per device can be saved.

--
Lei Ming
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-07-09 09:07    [W:0.066 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site