From: Paul M. <le...@li...> - 2007-05-11 02:30:13
|
Hi Saito-san, On Fri, May 11, 2007 at 11:07:26AM +0900, Hideo Saito wrote: > On Thu, 10 May 2007 14:15:26 +0900, Paul Mundt wrote: > > No, consider the use case where a platform implements pm_idle() and > > depends on certain conditions to be met to determine what sort of > > power-save state can be entered. It's still necessary to have the logic > > in default_idle() and to have that exported so it can be called back in > > to from pm_idle(), should the latter not have any meaningful work it can > > do at the time. > > I see, but I think following change in default_idle() does not need. > > + } else > + while (!need_resched()) > + cpu_relax(); > > how about following change? > > + } else > cpu_relax(); > That's fine as well. I shoved the while (!need_resched()) in there so we wouldn't have to retest hlt_counter in the common case. hlt/nohlt is something that's specified at boot, or by the board setup code, it's not something that warrants a lot of retesting once we're booted. |