Fix phase order
Fix wakeup source from kernel thread