drivers/perf: riscv: Remove redundant macro check
authorXiao Wang <xiao.w.wang@intel.com>
Mon, 8 Jul 2024 12:12:24 +0000 (20:12 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 16 Sep 2024 03:15:48 +0000 (20:15 -0700)
commit1e206fad765b293aa169ec08917761021f52399a
tree04c417b4fc1607a4601278448215f1029711f7af
parentf25170a05310b7715f9f06996548130570e704f6
drivers/perf: riscv: Remove redundant macro check

The macro CONFIG_RISCV_PMU must have been defined when riscv_pmu.c gets
compiled, so this patch removes the redundant check.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240708121224.1148154-1-xiao.w.wang@intel.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu.c