changes to scheduler.c minor changes to cpu.c