target/mips/cpu: Calculate the CP0 timer period using the CPU frequency