[patch] Create a new device_pm.{c|h} for internal use
Danny Kukawka
danny.kukawka at web.de
Tue Jul 3 10:56:12 PDT 2007
On Dienstag, 3. Juli 2007, Richard Hughes wrote:
> Attached patch abstracts out initial code for sharing between the acpi,
> pmu and (future) device batteries.
>
> This can't just be put into util_pm as it relies on HalDevice, which we
> can't use in addons and probers. It's also needed for other cleanup
> patches I'll need for power_supply device class device.
>
> Okay to commit?
Uh ... looks not that good to me. Why do you use in pmu.c
device_pm_remove_optional_props() to remove 6 properties by try to remove 35.
Looks really inefficient, you should only remove the keys you really have
used.
Danny
More information about the hal
mailing list