Battery Friend: Redefine rule - we don't want to have Conservative governor in use during suspend where CPU1 is turned off because the resume process can take more time. We set whether dynamic hotplug or conservative while suspend - dependant on Battery Friend is whether On or Off.
Battery Friend: Force active governor to ktoonservative
Battery Friend: Prepare the generic early suspend handler dependant on active_state
dynamic fsync: add reboot notifier to force flush outstanding data
this should further prevent data corruption from kernel panics and
forced reboots

bump version to 1.2
dynamic fsync: add kernel panic notifier to force flush outstanding data more paranoia safety checks
dynamic fsync: don't disable fdatasync()
rq_stats: set rq_info.init after initializing rq_info attributes

It is possible the kobj not initialized before def_work_fn called.
Fix this by setting rq_info as initialized only after initializing
rq_info attributes.

Change-Id: Iff8c5c653b51c711a7ddc5bbeae8684fcbf2a742
Signed-off-by: Jin Hong <jinh@codeaurora.org>
modified for Tuna Hybrid from CAF

Signed-off-by: Paul Reioux <reioux@gmail.com>
rq_stats: changing the show function for sysfs entry def_timer_ms

The computation done in sysfs show function show_def_timer_ms is
already happening in function def_work_fn. Since there can be a
time gap between when the computation is done in def_work_fn to
when it is done in show_def_timer_ms; the correct computation
is the one done in def_work_fn. Therefore removing the extra
computation from show_def_timer_ms.

Change-Id: I91f7d3f48d7c22282a5709432775a63e448c2fe3
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
modified for Tuna hybrid from CAF

Signed-off-by: Paul Reioux <reioux@gmail.com>
selinucx: Use GFP_ATOMIC under spinlock
wake_up_process() should never wakeup a TASK_STOPPED/TRACED task.
Change it to use TASK_NORMAL and add the WARN_ON().