]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: refactor with function of_coresight_get_cpu
authorLeo Yan <leo.yan@linaro.org>
Mon, 5 Jun 2017 20:15:15 +0000 (14:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:45:25 +0000 (11:45 +0200)
commit411cc69d8c8c98df17c526b1b153e145d34248e3
treecf4101a2b1aa2a44ce2f17949ecb080c71884fec
parent9f7b1be37f931c87190e10dc4cb2793437d7af61
coresight: refactor with function of_coresight_get_cpu

This is refactor to add function of_coresight_get_cpu(), so it's used to
retrieve CPU id for coresight component. Finally can use it as a common
function for multiple places.

Suggested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/of_coresight.c
include/linux/coresight.h