OSDN Git Service

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)
committerArve Hjønnevåg <arve@android.com>
Fri, 3 Jun 2011 22:24:27 +0000 (15:24 -0700)
commit2dd5c7c64a582ee370d089be808212762813ec83
tree55c3d2e8553e243412344ab93a72fb0ea3fdc21b
parent22992c7b7de5e1cbd0f87845363e076564403af7
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