[linux-pm] Problems with PM_FREEZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> > We can add a hint to pm_message_t. But for "full resume", we really
> > don't know if devices are only FROZEN or if they need full reinit.
> > 
> > So you may get info "only frozen" and "maybe frozen, maybe it was
> > powered down"; if you think that helps the drivers, just add a field
> > to pm_message_t (flags), and add this as a first flag.
> 
> Okay.  Can you tell me where is the code that resumes all the devices once
> the memory image is loaded?

kernel/power/swsusp.c swsusp_suspend() does device_power_up(). and
disk.c: pm_suspend_disk(). Use in_suspend() variable.

Ouch, but device_power_up and device_resume() do not take pm_message_t
parameter. They probably should. But the patch will be quite big.

								Pavel
-- 
if you have sharp zaurus hardware you don't need... you know my address

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux