power: increment wakeup_count when save_wakeup_count failed.
authorjinqian <jinqian@google.com>
Tue, 14 Apr 2015 20:47:35 +0000 (13:47 -0700)
committerJin Qian <jinqian@google.com>
Fri, 8 May 2015 23:19:00 +0000 (16:19 -0700)
commit9b14142be776019ef0c0f88ddf2e14b7721bae3d
tree445be4545586881cab64540b77a5a034714e7149
parent99a26ce784f9a4a9db1785a071fc9f5036353d5a
power: increment wakeup_count when save_wakeup_count failed.

user-space aborts suspend attempt if writing wakeup_count failed.
Count the write failure towards wakeup_count.

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