sched: add averaging routines from codeaurora's msm-3.4. They are used on the hotplug driver.

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

Conflicts:
	kernel/sched.c