Move cpu_has_work and cpu_pc_from_tb to cpu.h