From: Stefan <ste...@gm...> - 2004-12-27 11:51:30
|
> And also please try this one (in kernel/power/main.c): > static void suspend_finish(suspend_state_t state) > { > - device_resume(); > if (pm_ops && pm_ops->finish) > pm_ops->finish(state); > + device_resume(); > thaw_processes(); > pm_restore_console(); > } > According to ACPI spec, device resume should be after _WAK method (in > acpi_leave_sleep_state) This is the first thing I've done, it also works(See the archives), but Luca<kronos@pe...> told me that it's not correct: > Well, it may work but it"s not correct. ->finish is meant to be called > to finalize the wakeup procedure *after* devices are waked up. > ACPI finish calls acpi_leave_sleep_state() and restore the waking > vectore. I"m not an ACPI guru but my guess is that what you need is > in acpi_leave_sleep_state(). > If that"s the case we may want to split the finish callback (say > prepare_wake and finish_wake). This is what I did. Stefan |