Viresh Kumar
1fad17fb1b
PM / wakeup: Rework wakeup source timer cancellation
...
If wakeup_source_add() is called right after wakeup_source_remove()
for the same wakeup source, timer_setup() may be called for a
potentially scheduled timer which is incorrect.
To avoid that, move the wakeup source timer cancellation from
wakeup_source_drop() to wakeup_source_remove().
Moreover, make wakeup_source_remove() clear the timer function after
canceling the timer to let wakeup_source_not_registered() treat
unregistered wakeup sources in the same way as the ones that have
never been registered.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
[ rjw: Subject, changelog, merged two patches together ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-03-12 09:40:48 +01:00
..
firmware_loader
firmware: Always initialize the fw_priv list object
2018-09-30 08:49:55 -07:00
power
PM / wakeup: Rework wakeup source timer cancellation
2019-03-12 09:40:48 +01:00
regmap
Merge remote-tracking branch 'regmap/topic/irq' into regmap-next
2019-01-29 17:17:03 +00:00
test
arch_topology.c
sched/topology, drivers/base/arch_topology: Rebuild the sched_domain hierarchy when capacities change
2018-09-10 11:05:47 +02:00
attribute_container.c
base.h
driver core: remove unnecessary function extern declare
2018-07-16 13:32:20 +02:00
bus.c
sysfs: Disable lockdep for driver bind/unbind files
2018-12-19 15:58:40 +01:00
cacheinfo.c
cacheinfo: Keep the old value if of_property_read_u32 fails
2019-01-22 13:50:31 +01:00
class.c
component.c
component: convert to DEFINE_SHOW_ATTRIBUTE
2018-12-20 16:33:18 +01:00
container.c
core.c
Driver core patches for 4.21-rc1
2018-12-28 20:44:29 -08:00
cpu.c
PM / core: Add support to skip power management in device/driver model
2019-02-19 10:42:43 +01:00
dd.c
driver core: Add missing dev->bus->need_parent_lock checks
2018-12-19 10:08:34 +01:00
devcon.c
devcoredump.c
devres.c
devres: Align data[] to ARCH_KMALLOC_MINALIGN
2018-11-11 11:40:04 -08:00
devtmpfs.c
vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled
2018-12-20 16:32:56 +00:00
driver.c
driver-core: return EINVAL error instead of BUG_ON()
2018-05-25 18:18:45 +02:00
firmware.c
hypervisor.c
init.c
base: fix order of OF initialization
2018-07-07 17:54:29 +02:00
isa.c
Kconfig
Makefile
drivers: base: Introducing software nodes to the firmware node framework
2018-11-26 18:19:11 +01:00
map.c
memory.c
Driver core patches for 4.21-rc1
2018-12-28 20:44:29 -08:00
module.c
node.c
mm, proc: add KReclaimable to /proc/meminfo
2018-10-26 16:26:32 -07:00
pinctrl.c
platform-msi.c
platform-msi: Free descriptors in platform_msi_domain_free()
2018-12-13 09:35:31 +00:00
platform.c
drivers/base/platform.c: kmemleak ignore a known leak
2019-01-04 13:13:48 -08:00
property.c
device property: fix fwnode_graph_get_next_endpoint() documentation
2018-12-18 23:39:45 +01:00
soc.c
swnode.c
drivers: base: swnode: check if swnode is NULL before dereferencing it
2018-12-26 10:50:36 +01:00
syscore.c
topology.c
transport_class.c