diff options
| author | 2010-09-09 13:09:36 -0700 | |
|---|---|---|
| committer | 2010-09-09 13:09:36 -0700 | |
| commit | 898c4dc59fd37e42960dea906ab4a5264b8b135f (patch) | |
| tree | 370ef53260c68c31685fd26b10c22a60fe319f44 /libs/hwui/LayerCache.cpp | |
| parent | 467e8e13327bd9ad2dbabfa0a9b31f860202c7b1 (diff) | |
Don't crash in batterystats
The number of timers to allocate time shares to is calculated by
disregarding system-UID execution. However, the actual allocation
of time *was* considering system-UID locks as well. This wound up
trying to share time across more timers than had been counted in the
first pass, leading to divide-by-zero exceptions.
This patch changes the logic to account the time slice only to
non-system-UID entities, in keeping with the commentary.
Change-Id: I7384a3c269aea44e52bc983927f9417e11613ad5
Diffstat (limited to 'libs/hwui/LayerCache.cpp')
0 files changed, 0 insertions, 0 deletions