PM: describe kernel policy regarding wakeup defaults (v. 2)
authorAlan Stern <stern@rowland.harvard.edu>
Sat, 12 Jun 2010 22:36:52 +0000 (00:36 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 18 Jul 2010 23:58:48 +0000 (01:58 +0200)
commit2430d12c94ff2bafcfe4f65edf7ee5f300d2d9c6
treea904bbe41d973bca7079ea6b9ffd42e080a7798d
parent90133673395849c9d4e66a563f2d0d91d92aa461
PM: describe kernel policy regarding wakeup defaults (v. 2)

This patch (as1381b) updates a comment describing the kernel's policy
toward enabling wakeup by default.

It also makes device_set_wakeup_capable() actually do something when
CONFIG_PM isn't enabled.  It's not clear this is necessary; however if
it isn't then device_init_wakeup() and device_can_wakeup() should also
be do-nothing routines.  Furthermore, I don't expect this change to
have any noticeable effect -- but if it does then clearly the old
behavior was wrong.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/pm_wakeup.h