power: update wakeup reason immediately after wakeup