]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitc56cdd7a5c836db7834256f09692112afee9eb3f
treecf4101a2b1aa2a44ce2f17949ecb080c71884fec
parent04c9490035691a398d851fd160ce8af08ba0af0d
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