[PATCH v6 02/19] coresight: Set per-CPU source pointer

Leo Yan leo.yan at arm.com
Mon Mar 16 10:41:31 PDT 2026


On Fri, Mar 13, 2026 at 11:22:32AM +0000, Suzuki K Poulose wrote:

[...]

> > @@ -82,6 +83,56 @@ struct coresight_device *coresight_get_percpu_sink(int cpu)
> >   }
> >   EXPORT_SYMBOL_GPL(coresight_get_percpu_sink);
> > +static void coresight_set_percpu_source_local(void *csdev)
> > +{
> > +	this_cpu_write(csdev_source, csdev);
> > +}
> 
> 
> > +
> > +static void _coresight_set_percpu_source(int cpu, struct coresight_device *csdev)
> > +{
> 
> While at it, why not add a coresight_get_percpu_source() and hide the
> implementation for the subsequent patches ?

Good point!  Will do.



More information about the linux-arm-kernel mailing list