drivers/perf: riscv: Use BIT macro for shifting operations
authorAtish Patra <atishp@rivosinc.com>
Sat, 20 Apr 2024 15:17:20 +0000 (08:17 -0700)
committerAnup Patel <anup@brainfault.org>
Mon, 22 Apr 2024 05:43:48 +0000 (11:13 +0530)
commitc69f9cb0595ff91759b1ff361d19068e16574229
tree83761817412bb2aadcab551f5695c40df96d8bc8
parent7dda24bacc05ae4e43b75aab347e4df07e002502
drivers/perf: riscv: Use BIT macro for shifting operations

It is a good practice to use BIT() instead of (1 << x).
Replace the current usages with BIT().

Take this opportunity to replace few (1UL << x) with BIT() as well
for consistency.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-5-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/sbi.h
drivers/perf/riscv_pmu_sbi.c