]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:27 +0000 (08:35 +0200)
commit140b361c6ac14976fd7b1d5a0fd21c2e9da3ae61
tree72477314c9bdeb9f7c69ed6069da371a2c28432f
parent33c6a80e37f7b3d9b8dd3dcecd05ab87d453e500
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