Initial attempt at porting powersuspend to replace earlysuspend