Re: APM depends on PM_SLEEP?

Rafael J. Wysocki
2008-02-20T00:17:58Z

On Tuesday, 19 of February 2008, Guennadi Liakhovetski wrote:
> Hi

Hi,

> Could anyone explain me why APM depends on PM_SLEEP?

Because it refers to the code in drivers/base/power/main.c that depends on
PM_SLEEP.

> Isn't it a valid configuration, when I don't want to sleep / suspend, but
> need APM to, say, turn my machine off using
> APM_REAL_MODE_POWER_OFF, or if I need APM_DISPLAY_BLANK?

Yes, in theory, but that would require some more fine-grained #ifdeffing or
something similar.

Thanks,
Rafael