commit | a3216015343a90f5516eebb6d18ee3f5e30c9174 | [log] [tgz] |
---|---|---|
author | Arve Hjønnevåg <arve@android.com> | Mon Feb 14 21:09:51 2011 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:09:59 2011 -0700 |
tree | ecfd97d09f431eeb15d5f6561820629fb091f4e6 | |
parent | 81e4312eeb4ed3973454ea73c5345ef927e32453 [diff] |
ARM: etm: Add some missing locks and error checks It is not safe to call etm_lock or etb_lock without holding the mutex since another thread may also have unlocked the registers. Also add some missing checks for valid etb_regs in the etm sysfs entries. Change-Id: I939f76a6ea7546a8fc0d4ddafa2fd2b6f38103bb Signed-off-by: Arve Hjønnevåg <arve@android.com>