cpufreq: pegasusq: Calculate gradient of CPU load to early increase f…
…requency

ported from this commit: https://github.com/stratosk/samsung-kernel-aries/commit/0d614b9f39017b50c140d7159c15716165f5ed10

Instead of checking only the absolute value of CPU load_freq to increase
frequency, we detect forthcoming CPU load rise and increase frequency
earlier.

Every sampling rate, we calculate the gradient of load_freq. If it is
too steep we assume that the load most probably will go over
up_threshold in next iteration(s) and we increase frequency immediately.

New tuners are introduced:
- early_demand: to enable this functionality (disabled by default).
- grad_up_threshold: over this gradient of load we will increase
frequency immediately.

Change-Id: Ie190364bb99a825731b38175b545591dc63d8a95
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>

Conflicts:
	drivers/cpufreq/cpufreq_pegasusq.c
cpufreq: lulzactiveq governor
led-control: compensate for uneven color channel scale from userspace