tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pmf(9) vs sysmon for power events (especially sleep when powerd(8) is not running)
On Fri, May 06, 2011 at 04:45:55PM +0100, Jean-Yves Migeon wrote:
> 1 - I shall patch sysmon_pswitch_event and add a callback for sleep
> that MD code can register,
> 2 - or register a pmf(9) event handler during hypervisor attachment,
> and just use pmf_event_inject() in the /* XXX */ sleep path that will
> trigger this handler.
Either one is fine by me. Perhaps the latter approach sounds slightly better,
as it uses the already existing KPI and avoids patching the already convoluted
sysmon routines.
- Jukka.
Home |
Main Index |
Thread Index |
Old Index