Power: add an API to log wakeup reasons