Hi buddies,
I have developed another patch for CPU idle notification with following
two enhancements.
1) Relax constraints when calling cpu_idle_register_callback/
cpu_idle_unregister_callback. In previous version, it has a constraint that
caller
can't call these two interfaces with cpu_lock held or cpu paused. This
constraint
has been relaxed with this patch.
2) Add CPU wakeup check callback to cpu_idle_enter(). With this
callback, CPU idle notification framework could cancel calling registered
callbacks as soon as possible when it detects that a CPU has been waken up.
Webrev for this patch is at
http://cr.opensolaris.org/~gerry/cpuidle_20090408/.
With this patch, main features of CPU idle notification are ready now.
I have posted another webrev with full code of CPU idle notification
implementation
at http://cr.opensolaris.org/~gerry/cpuidle_alpha1/.
Thanks for your help and quick review is appreciated because we are
trying
to catch up with b113 if possible.
Thanks!
Liu Jiang (Gerry)
Senior Software Engineer
OpenSolaris, OTC, SSG, Intel
Tel: (8610)82171643
iNet: 8-758-1643
Location: Raycom 9W013