lkml.org 
[lkml]   [2023]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v4 04/10] drivers: perf: Rename riscv pmu sbi driver
    On Mon, Jul 3, 2023 at 5:50 AM Alexandre Ghiti <alexghiti@rivosinc.com> wrote:
    >
    > That's just cosmetic, no functional changes.
    >
    > Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
    > Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
    > ---
    > drivers/perf/riscv_pmu_sbi.c | 4 ++--
    > include/linux/perf/riscv_pmu.h | 2 +-
    > 2 files changed, 3 insertions(+), 3 deletions(-)
    >
    > diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c
    > index 4f3ac296b3e2..83c3f1c4d2f1 100644
    > --- a/drivers/perf/riscv_pmu_sbi.c
    > +++ b/drivers/perf/riscv_pmu_sbi.c
    > @@ -914,7 +914,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)
    > static struct platform_driver pmu_sbi_driver = {
    > .probe = pmu_sbi_device_probe,
    > .driver = {
    > - .name = RISCV_PMU_PDEV_NAME,
    > + .name = RISCV_PMU_SBI_PDEV_NAME,
    > },
    > };
    >
    > @@ -941,7 +941,7 @@ static int __init pmu_sbi_devinit(void)
    > if (ret)
    > return ret;
    >
    > - pdev = platform_device_register_simple(RISCV_PMU_PDEV_NAME, -1, NULL, 0);
    > + pdev = platform_device_register_simple(RISCV_PMU_SBI_PDEV_NAME, -1, NULL, 0);
    > if (IS_ERR(pdev)) {
    > platform_driver_unregister(&pmu_sbi_driver);
    > return PTR_ERR(pdev);
    > diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h
    > index 9f70d94942e0..5deeea0be7cb 100644
    > --- a/include/linux/perf/riscv_pmu.h
    > +++ b/include/linux/perf/riscv_pmu.h
    > @@ -21,7 +21,7 @@
    >
    > #define RISCV_MAX_COUNTERS 64
    > #define RISCV_OP_UNSUPP (-EOPNOTSUPP)
    > -#define RISCV_PMU_PDEV_NAME "riscv-pmu"
    > +#define RISCV_PMU_SBI_PDEV_NAME "riscv-pmu-sbi"
    > #define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy"
    >
    > #define RISCV_PMU_STOP_FLAG_RESET 1
    > --
    > 2.39.2
    >


    Reviewed-by: Atish Patra <atishp@rivosinc.com>
    --
    Regards,
    Atish

    \
     
     \ /
      Last update: 2023-07-16 20:48    [W:2.491 / U:0.320 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site