fs/proc/base.c (affects lowmemorykiller): oom_adj -17 triggers oom_score_adj of -1000

Prior to this patch, oom_score_adj was automatically calculated based
on the oom_adj value.
When setting an oom_adj value of the minium value (-17), automatically
set oom_score_adj to its minimum value (-1000) as well.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
mm/oom_kill.c (affects lowmemorykiller): make tasks with oom_score_adj = -1000 unkillable

Signed-off-by: Dan Trifan <jimsth@gmail.com>
ondemandplus governor: adaptive timer_rate

Calculate the average CPU frequency of the last 5 timer
cycles. Then check if the new to-be-requested frequency
is within a divergent range of 15% for lower frequencies,
or is equal to the average for higher frequencies.
If yes, slow down the timer.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
ondemandplus governor: fix adaptive timer_rate

The average CPU frequency wasn't ever reset, messing up the whole thing.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
Use francos color and gamma values.

Signed-off-by: Dan Trifan <jimsth@gmail.com>