[RAMEN9610-8149] PM QoS: add delayed_work_pending check
authorTaekki Kim <taekki.kim@samsung.com>
Tue, 25 Feb 2014 15:50:42 +0000 (00:50 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 15 Nov 2018 04:58:18 +0000 (13:58 +0900)
commit6a46549a2b03e7976c5140e845da3d3c7ba3e30c
treee98bbeeabea1d15891e7fa15b5cf9a3fa87bcf49
parent01e69ac8ab598e83204b2f25bcb454718ac5d9f2
[RAMEN9610-8149] PM QoS: add delayed_work_pending check

This patch adds delayed_work_pending check before
cancel_delayed_work_sync(). If cancel_delayed_work_sync()
is called at same time, it can be occur race condition
about pending bit.

Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
Signed-off-by: Sungjinn Chung <sungjinn.chung@samsung.com>
Conflicts:

kernel/power/qos.c

Change-Id: I245504e1934e18480564a3df9c05058cf49383ce
kernel/power/qos.c