power: patch power to latest compared to newer kernel sources.

This way, the kernel will have an easier time to support autosleep/powersuspend compared to earlysuspend.

Signed-off-by: Lens-F <tnoah12@gmail.com>
powersuspend: new PM kernel driver for Android w/o early_suspend

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>

Conflicts:
	kernel/power/Kconfig

Signed-off-by: Lens-F <tnoah12@gmail.com>
powersuspend: fix logci derps :p

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
kernel/power/powersuspend: remove userspace dependency from powersuspend

make powersuspend not depend on a userspace initiator anymore, but use a hook
in autosleep instead.

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
kernel/power/powersuspend: add back userpace control w/ default kernel control

make kernel / userspace mode switchable

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
kernel/power/powersuspend: default to userspace for now

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
kernel/power/powersuspend: LCD screen on/off hooks (Yank555.lu)

- add an alternative hook for screen on / off detection in the display
  pannel driver
- sleeps  ~0.1s sooner, wakes up ~1s later then autosleep
- clean up source formatting a bit (Paul Reioux)

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Lens-F <tnoah12@gmail.com>
fs: dyn_sync_cntrl: Adaption from earlysuspend to powersuspend

Signed-off-by: Lens-F <tnoah12@gmail.com>