commit | 8aface043840eee29cc5df64704d9492f9830d8f | [log] [tgz] |
---|---|---|
author | Naseer Ahmed <naseer@codeaurora.org> | Tue Aug 27 11:30:41 2013 -0400 |
committer | Naseer Ahmed <naseer@codeaurora.org> | Tue Aug 27 14:35:27 2013 -0400 |
tree | 92f00f6feb40c6d30a0d0a3fbc887fbad5e0154c | |
parent | 61f5bc100eb9504a15f3d53a7aedd692973d0aa2 [diff] |
hwc: Empty first read to avoid stale data at boot When an fd is opened for the first time, poll always succeeds without a notify from the driver. This gives us invalid data from the driver, which actually has the right value only when it calls sysfs_notify. Do a first read for the vsync fds to avoid this. Change-Id: I47e7bb0a3f91ccb90b1cf36fe5e7d75de1085b62