[PATCH v7 04/24] drivers/perf: riscv: Use BIT macro for shifting operations