summaryrefslogtreecommitdiff
path: root/util/powerd_lock.h
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: fix all the header guardsBill Richardson2015-06-181-3/+3
| | | | | | | | | | | | | | | This unifies all the EC header files to use __CROS_EC_FILENAME_H as the include guard. Well, except for test/ util/ and extra/ which use __TEST_ __UTIL_ and __EXTRA_ prefixes respectively. BUG=chromium:496895 BRANCH=none TEST=make buildall -j Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: Iea71b3a08bdec94a11239de810a2b2e152b15029 Reviewed-on: https://chromium-review.googlesource.com/278121 Reviewed-by: Randall Spangler <rspangler@chromium.org>
* sb_firmware: check if last full charge is zeroSheng-Liang Song2015-05-141-0/+8
| | | | | | | | | | | | | | | Detect if the last full charge is zero or not. BUG=chrome-os-partner:36310 BRANCH=none TEST=Verified on Glimmer. crosh> battery_firmware check crosh> battery_firmware update Change-Id: I078b860acc96f60830c82af8f85cfb98e27095cb Signed-off-by: Sheng-Liang Song <ssl@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/263156 Reviewed-by: Shawn N <shawnn@chromium.org>
* sb_firmware: write PID to lockfile for powerdSheng-Liang Song2015-03-271-0/+33
Add logic to write PID to /var/lock/battery_tool_powerd.lock while performing destructive battery firmware update actions. BUG=chrome-os-partner:36310 BRANCH=none CQ-DEPEND=CL:261318 TEST=Verified on glimmer. Change-Id: I47f34a3a2cb890e66591ef16ac5cf7186d662900 Signed-off-by: Sheng-Liang Song <ssl@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/260868 Reviewed-by: Shawn N <shawnn@chromium.org>