cpuidle: RISC-V: Move few functions to arch/riscv