Re: [PATCH v2 2/3] coresight: refactor with function of_coresight_get_cpu

2017-03-01 Thread Leo Yan
On Wed, Mar 01, 2017 at 09:02:33AM -0700, Mathieu Poirier wrote: > On Tue, Feb 28, 2017 at 11:06:59PM +0800, Leo Yan wrote: > > 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 multi

Re: [PATCH v2 2/3] coresight: refactor with function of_coresight_get_cpu

2017-03-01 Thread Mathieu Poirier
On Tue, Feb 28, 2017 at 11:06:59PM +0800, Leo Yan wrote: > 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 > Signed-off-by: Leo Yan

[PATCH v2 2/3] coresight: refactor with function of_coresight_get_cpu

2017-02-28 Thread Leo Yan
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 Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 35 +++