Files
linux/drivers
Rafael J. Wysocki b5252a6cbb PM: sleep: core: Drop racy and redundant checks from device_prepare()
Alan Stern points out that the WARN_ON() check in device_prepare()
is racy (because the PM-runtime API can be disabled briefly for any
device at any time and system suspend can start at any time too) and
the pm_runtime_suspended() check in the computation of the
direct_complete flag value is redundant (because it will be
repeated later anyway).

Drop both these checks accordingly.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-04-01 11:38:49 +02:00
..
2020-03-15 20:13:33 +02:00
2020-03-30 14:45:57 +02:00
2020-03-27 10:23:43 -06:00
2020-03-23 08:04:08 +01:00
2020-03-30 14:45:57 +02:00
2020-03-05 09:42:23 -06:00