lkml.org 
[lkml]   [2024]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 09/30] perf/xgene: Assign parents for event_source devices
    Date
    Currently all these devices appear directly under /sys/devices/
    Only root busses should appear there, so instead assign the pmu->dev
    parents to be the hardware related struct device.

    Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/
    Cc: Khuong Dinh <khuong@os.amperecomputing.com>
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    ---
    drivers/perf/xgene_pmu.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c
    index 0d49343d704b..8823b4c6b556 100644
    --- a/drivers/perf/xgene_pmu.c
    +++ b/drivers/perf/xgene_pmu.c
    @@ -1102,6 +1102,7 @@ static int xgene_init_perf(struct xgene_pmu_dev *pmu_dev, char *name)

    /* Perf driver registration */
    pmu_dev->pmu = (struct pmu) {
    + .parent = pmu_dev->parent->dev,
    .attr_groups = pmu_dev->attr_groups,
    .task_ctx_nr = perf_invalid_context,
    .pmu_enable = xgene_perf_pmu_enable,
    --
    2.39.2

    \
     
     \ /
      Last update: 2024-05-27 16:38    [W:5.631 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site