[MIPS] lib_mips/time.c: Fix CP0 count register usage and timer routines