auto_hotplug.c: add helpers to cpu_up and cpu_down. Also add option to change between dual/quad mode.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
ARM: add cpufreq transiton notifier to adjust loops_per_jiffy for smp

If CONFIG_SMP, cpufreq skips loops_per_jiffy update, because different
arch has different per-cpu loops_per_jiffy definition.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
auto_hotplug.c: version pushed to v1.0 according to the amount of changes in the code. Function wise its basically the same, but the code is re-worked to accomodate the new dual and quad core modes if users decide not to use hotplugging routines. Also using a Codeaurora function to calculate the runnable threads average instead of the previous ringbuffer. Use a counter that is reset every sample time that filters spurious low loads that could ruin a seemless gaming experience. Added some comments, code is a little bit more cleaner as I removed all if debug lines.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	arch/arm/kernel/auto_hotplug.c