lkml.org 
[lkml]   [2011]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-pm] [PATCH v4] PM: add statistics debugfs file for suspend to ram
On Wed, Aug 10, 2011 at 11:30:40PM +0530, Mansoor, Illyas wrote:
> > +struct suspend_stats suspend_stats;
> > static DEFINE_MUTEX(dpm_list_mtx);
> > static pm_message_t pm_transition;
> >
> > @@ -464,8 +465,12 @@ void dpm_resume_noirq(pm_message_t state)
> > mutex_unlock(&dpm_list_mtx);
> >
> > error = device_resume_noirq(dev, state);
> > - if (error)
> > + if (error) {
> > + suspend_stats.failed_resume_noirq++;
> > + dpm_save_failed_step(SUSPEND_RESUME_NOIRQ);
> > + dpm_save_failed_dev(dev_name(dev));
>
> Please make these statistics conditionally enabled, so on a production system
> If we need to disable these statistics code we should be able to do so.

Why, are they taking time or space that is needed for something else?
What's the downside here of just not always having this enabled?

greg k-h


\
 
 \ /
  Last update: 2011-08-10 21:47    [W:0.060 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site