Updated clock.c to use cpu.h

Added CPU control code.