Revert "squash commit of PM changes from AOSP"

This reverts commit b0161a9582a23675ba78f306f6cc858357c69105.
Revert "Power: Add guard condition for maximum wakeup reasons"

This reverts commit d9d93fdda173257f32c6f08a2e175b23105594a5.
Revert "POWER: fix compile warnings in log_wakeup_reason"

This reverts commit 784681777d578c7377c503ec7705164e7df9bd12.
Revert "Power: add an API to log wakeup reasons"

This reverts commit f72c2424b459b53cadb09b659a9a05f0e6e360dc.