On Tue, 12 Apr 2011, Jiejing.Zhang wrote: > > Bear in mind that rotating disk drives typically take several hundred > > milliseconds to spin down. The warning would always trigger. That > > doesn't seem particularly useful. > > > > I think it's better change the default value 0 to disable it, enable it only > some one write a threshold. > > First of all, it's a debug function (depends on PM_DEBUG), It's useful > in embedded area, like mobile phone or e-book, they are suspend/resume very > frequently and required resume as quick as possible. This debug function > can used to figure out which driver(s) is/are slow on suspend/resume. > > I fact that embedded engineer meets a lot is, after some development the > total time of suspend/resume is become slow, since there was a lot driver > may affect the total time, it's function can help them to figure out which > driver is slow, and it's make life easier. Maybe you should mention this in the patch description. You know, the "initcall_debug" boot parameter will cause the kernel to log the amount of time each device spends doing suspend and resume. Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm