mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
coresight: Make device to CPU mapping generic
The CoreSight components ETM and CPU-Debug are always associated with CPUs. Replace the of_coresight_get_cpu() with a platform agnostic helper, in preparation to add ACPI support. Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f03631da4b
commit
91824db2ea
3 changed files with 15 additions and 13 deletions
|
@ -292,12 +292,7 @@ static inline void coresight_disclaim_device_unlocked(void __iomem *base) {}
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
extern int of_coresight_get_cpu(const struct device_node *node);
|
||||
#else
|
||||
static inline int of_coresight_get_cpu(const struct device_node *node)
|
||||
{ return 0; }
|
||||
#endif
|
||||
extern int coresight_get_cpu(struct device *dev);
|
||||
|
||||
struct coresight_platform_data *coresight_get_platform_data(struct device *dev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue