diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-11-08 10:53:06 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-11 17:54:46 +0530 |
commit | 15906a3984f7c22b81802bcadaa4e517f4f685c8 (patch) | |
tree | 39f798975fe7da246adfeaeb8b0b30e36c2652ba /lib | |
parent | b28f07005cef03d5eea43a8a7954154b391871fe (diff) |
lib: utils: Rename the prefix in PMU DT properties
As per the DT schema rules, the prefix should be vendor. As the PMU
properties are generic for all vendors, change the prefix to riscv
instead of pmu.
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/fdt/fdt_pmu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/utils/fdt/fdt_pmu.c b/lib/utils/fdt/fdt_pmu.c index 09c83c8..529ee42 100644 --- a/lib/utils/fdt/fdt_pmu.c +++ b/lib/utils/fdt/fdt_pmu.c @@ -50,9 +50,9 @@ int fdt_pmu_fixup(void *fdt) if (pmu_offset < 0) return SBI_EFAIL; - fdt_delprop(fdt, pmu_offset, "pmu,event-to-mhpmcounters"); - fdt_delprop(fdt, pmu_offset, "pmu,event-to-mhpmevent"); - fdt_delprop(fdt, pmu_offset, "pmu,raw-event-to-mhpmcounters"); + fdt_delprop(fdt, pmu_offset, "riscv,event-to-mhpmcounters"); + fdt_delprop(fdt, pmu_offset, "riscv,event-to-mhpmevent"); + fdt_delprop(fdt, pmu_offset, "riscv,raw-event-to-mhpmcounters"); if (!sbi_hart_has_feature(scratch, SBI_HART_HAS_SSCOFPMF)) fdt_delprop(fdt, pmu_offset, "interrupts-extended"); @@ -75,7 +75,7 @@ int fdt_pmu_setup(void *fdt) if (pmu_offset < 0) return SBI_EFAIL; - event_ctr_map = fdt_getprop(fdt, pmu_offset, "pmu,event-to-mhpmcounters", &len); + event_ctr_map = fdt_getprop(fdt, pmu_offset, "riscv,event-to-mhpmcounters", &len); if (!event_ctr_map || len < 8) return SBI_EFAIL; len = len / (sizeof(u32) * 3); @@ -86,7 +86,7 @@ int fdt_pmu_setup(void *fdt) sbi_pmu_add_hw_event_counter_map(event_idx_start, event_idx_end, ctr_map); } - event_val = fdt_getprop(fdt, pmu_offset, "pmu,event-to-mhpmevent", &len); + event_val = fdt_getprop(fdt, pmu_offset, "riscv,event-to-mhpmevent", &len); if (!event_val || len < 8) return SBI_EFAIL; len = len / (sizeof(u32) * 3); @@ -98,7 +98,7 @@ int fdt_pmu_setup(void *fdt) hw_event_count++; } - event_val = fdt_getprop(fdt, pmu_offset, "pmu,raw-event-to-mhpmcounters", &len); + event_val = fdt_getprop(fdt, pmu_offset, "riscv,raw-event-to-mhpmcounters", &len); if (!event_val || len < 8) return SBI_EFAIL; len = len / (sizeof(u32) * 3); |