battery polling is a headache for OLPC

Daniel Drake dsd at
Mon Aug 4 10:58:48 PDT 2008


Commit 7430beeb6c introduced battery polling. When upgrading to a HAL
version which includes that commit, we are seeing some audio performance
problems on the XO laptop as HAL polls the battery (unfortunately, we
have to disable interrupts and so on while querying the embedded

Our power management subsystem does receive interrupts when battery
charge level changes, and these are successfully communicated to HAL -
no need to poll.

I've attempted to fix this by adding a fdi entry for OLPC's battery that
indicates this, and then modifying hald not to poll batteries that
provide notifications. Any thoughts/comments?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-poll-batteries-which-provide-notifications.patch
Type: application/mbox
Size: 0 bytes
Desc: not available
Url : 

More information about the hal mailing list