kernel: power: update from jb_chocolate

credit: mrg666