[PATCH 01/32] perf: Allow a PMU to have a parent

Greg KH gregkh at linuxfoundation.org
Tue Apr 4 06:51:48 PDT 2023


On Tue, Apr 04, 2023 at 02:41:54PM +0100, Jonathan Cameron wrote:
> Some PMUs have well defined parents such as PCI devices.
> As the device_initialize() and device_add() are all within
> pmu_dev_alloc() which is called from perf_pmu_register()
> there is no opportunity to set the parent from within a driver.
> 
> Add a struct device *parent field to struct pmu and use that
> to set the parent.
> 
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>
> Reviewed-by: Dan Williams <dan.j.williams at intel.com>
> 

Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>



More information about the linux-arm-kernel mailing list