tweak dirty_background_ratio, vm_dirty_ratio
bcm4325: Force powersave mode.

Thanks to Mik9 for this one.

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
disable GENTLE FAIR SLEEPERS Sleeper Fairness is a concept used by CFS which treat sleeping/waiting tasks as if they were in a run queue. This implies tasks which spend most of the time waiting for an user input and such will get a fair share of CPU when they need it. Disabling Gentle Fair Sleepers could improve UI responsiveness.

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
Hack for CRT animations fix

Based of of CM team's fix:
https://github.com/CyanogenMod/android_kernel_samsung_t1/commit/7dfa557a301e07c91793727623f99f5b0d9cbf19

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
EXPERIMENTAL: PM patches.

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
Apply some PM patches.

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
Freezer: Fix a race during freezing of TASK_STOPPED tasks

After calling freeze_task(), try_to_freeze_tasks() see whether the
task is stopped or traced and if so, considers it to be frozen;
however, nothing guarantees that either the task being frozen sees
TIF_FREEZE or the freezer sees TASK_STOPPED -> TASK_RUNNING
transition.  The task being frozen may wake up and not see TIF_FREEZE
while the freezer fails to notice the transition and believes the task
is still stopped.

This patch fixes the race by making freeze_task() always go through
fake_signal_wake_up() for applicable tasks.  The function goes through
the target task's scheduler lock and thus guarantees that either the
target sees TIF_FREEZE or try_to_freeze_task() sees TASK_RUNNING.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>
Some fixes.

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>