diff options
author | Arve Hjønnevåg <arve@android.com> | 2011-02-14 21:09:51 -0800 |
---|---|---|
committer | Frank Li <Frank.Li@freescale.com> | 2012-09-26 13:23:28 +0800 |
commit | c56e52b3453ea8d3b5e385b3cd914272cc2b6d88 (patch) | |
tree | 72477314c9bdeb9f7c69ed6069da371a2c28432f /arch/x86/kernel/cpu/perf_event.c | |
parent | 3e235453f19fbc4825d280a82ee21823dc8558be (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>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.c')
0 files changed, 0 insertions, 0 deletions