[linux-pm] [PATCH 2/2] Fix console handling during suspend/resume

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

 



On Sat, 24 Jun 2006, Linus Torvalds wrote:

>  /**
>   *	device_suspend - Save state and stop all devices in system.
>   *	@state:		Power state to put each device in.
>   *
>   *	Walk the dpm_active list, call ->suspend() for each device, and move
> - *	it to dpm_off.
> - *	Check the return value for each. If it returns 0, then we move the
> - *	the device to the dpm_off list. If it returns -EAGAIN, we move it to
> - *	the dpm_off_irq list. If we get a different error, try and back out.
> + *	it to the dpm_off list.
> + *
> + *	(For historical reasons, if it returns -EAGAIN, that used to mean
> + *	that the device would be called again with interrupts enabled.
--------------------------------------------------------------^ disabled.

> + *	These days, we use the "suspend_late()" callback for that, so we
> + *	print a warning and consider it an error).

Alan Stern



[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