slub: initialise possibly uninitialised variable

Change-Id: I52cac4f31ebcd951a3ede031d95055a826d01761
Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>
cpufreq: Introduce new relation for freq selection

Introduce CPUFREQ_RELATION_C for frequency selection.
It selects the frequency with the minimum euclidean distance
to target. In case of equal distance between 2 frequencies,
it will select the greater freq.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
cpufreq: interactive: eliminate dead band effect in low load

the old frequency calculation algorithm that calculates frequency directly proportional to load will result in a dead band effect in low load. at loads near 0, the new frequency calculated is always below min freq, thus causing the min freq to be selected every time. this new algorithm will select the frequencies linearly, such that the min load will result in min freq and so on.

Change-Id: Icd6193f2517542384049c3e6211dc71fc23b60c0
Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>
cpufreq: interactive: use the closest cpufreq relation

using this prevents the min freq from being selected only when the load is 0, compared to the previous one which selects lowest freqs at or above target.

Change-Id: I503912f5f2637db370497ea68de7a65f305ac1bb
Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>