power: validate wakeup source before activating it.
authorjinqian <jinqian@google.com>
Mon, 13 Apr 2015 21:12:47 +0000 (14:12 -0700)
committerJin Qian <jinqian@google.com>
Fri, 8 May 2015 23:18:43 +0000 (16:18 -0700)
commit99a26ce784f9a4a9db1785a071fc9f5036353d5a
tree88247e543c07d3fc652629eccd3063974fbeb8bf
parent98fc0d41be3806ec5ffa160692a39e90b76898f0
power: validate wakeup source before activating it.

A rogue wakeup source not registered in wakeup_sources list is not visible
from wakeup_sources_stats_show. Check if the wakeup source is registered
properly by looking at the timer struct.

Signed-off-by: jinqian <jinqian@google.com>
Change-Id: Id4b2fdb3cf7fecb2fe7576b2305cd337974665c9
drivers/base/power/wakeup.c