[PATCH v5 04/22] drivers/perf: riscv: Use BIT macro for shifting operations