commit | 837ee996ed9839dcae7efbc21d81f485ed445521 | [log] [tgz] |
---|---|---|
author | Sameer Nanda <snanda@chromium.org> | Fri Mar 19 22:49:05 2010 |
committer | Sameer Nanda <snanda@chromium.org> | Fri Mar 19 22:49:05 2010 |
tree | 79c196fed44aeb40b03d736ae2b7890c0cd0a3d3 | |
parent | 21e6f20380a6f98837ebf162cce376d1e8ed87f5 [diff] |
Added check to ensure LID is in a closed state before proceeding with suspend-to-RAM. This is to fix a race condition where if the LID is reopened instantaneously after being closed, two LID events get generated (first for LID close and second for LID open). The second event makes the system go back to sleep since the LID state is not being checked. BUG=1961 TEST=manual testing on x200 to make system go to suspend on closing LID Review URL: http://codereview.chromium.org/1084013