]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: etm: Add some missing locks and error checks
authorArve Hjønnevåg <arve@android.com>
Tue, 15 Feb 2011 05:09:51 +0000 (21:09 -0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:03 +0000 (14:13 +0200)
commit63abfbe0162ff8106d4157e05d13343b1f317fe5
tree72477314c9bdeb9f7c69ed6069da371a2c28432f
parent5a962aa04a82bf1ec6c34f7eef75edbc7129e7e6
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>
arch/arm/kernel/etm.c