On Wed, Sep 07, 2005 at 09:42:24AM -0700, Nish Aravamudan wrote:Exactly what I had in mind. If there are hooks for all_idle transitions then architectures can hang whatever makes sense there. That hopefully would result in readable code for both power reduction (laptop) and for the strange things that embedded systems sometimes do.
Hrm, got dropped from the Cc... :) Yes, the dynamic-tick generic
infrastructure being proposed, with the idle CPU mask and the
set_all_cpus_idle() tick_source hook, would allow exactly this in
arch-specific code.
I think Bill is referring to the "resume" interface i.e an
unset_all_cpus_idle() interface, which is missing (set/unset
probably are not good prefixes maybe?). I feel we can
add one.