add cpu config module, update timer code