coresight: etm3x: unlocking tracers in default arch init
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 18 Feb 2016 00:51:50 +0000 (17:51 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:31:19 +0000 (15:31 -0600)
commitfdd3e24c6b7cbea0737008ffb846c76d8b479d97
treeeefdae6f5764ef24cb34ca709fa7e20fa22eeb9a
parentdd1e17528c41f41b06287bf7f2b47a078628b87a
coresight: etm3x: unlocking tracers in default arch init

Calling function 'smp_call_function_single()' to unlock a
tracer and calling it again right after to perform the
default initialisation doesn't make sense.

Moving 'etm_os_unlock()' just before making the default
initialisation results in the same outcome while saving
one call to 'smp_call_function_single()'.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ae69a1da399fccaed406932f5cbee55a6f9d4425)
drivers/hwtracing/coresight/coresight-etm3x.c