sched: fix reference to wrong cfs_rq

Commit 7db16c8c (sched: Fix SCHED_HRTICK bug leading to late preemption
of tasks) introduced a bug in sched_slice() calculation by using wrong
cfs_rq for tasks. rq->cfs was incorrectly used as task's cfs_rq, rather
than the correct one to which they belonged.

Fix the bug by using correct cfs_rq for tasks.

Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
msm: kgsl: Don't access context memory after it's freed

Context memory was potentially accessed after being freed. Fix this
by incrementing the context's refcount at strategic places.

Change-Id: I31049bdd3eb9ac52160ca593619fcc8a32d4ddee
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
jf: disable ZRAM

Change-Id: I29ef2c8a35b04e234b14b967e87968addecdbe02
jf: make TUN a module

Change-Id: I2237b52a2826be7aa51a142b808c891f07857240
jf: remove "Special HID Drivers"

Change-Id: I7bfb9985cdcc1ef214c94c86d8dd151704255f90
jf: disable MMC_test module

Change-Id: I4025e8f26c03cd09b5ebe70bade2921f0eead759
jf: disable un-used filesystems

Change-Id: Ifb5c09e184e0f5dae78831a72f62ad137646445f
jf: disable DEBUG_USER

Change-Id: Ie2235d554d69c3045c1836a01043a69473d63379
jf: don't build QCOM crypto engine as a module

Change-Id: I364a64cf54eb7189713212bb4df5a7ae31d79d0a
 arm/crypto: Add optimized AES and SHA1 routines

Add assembler versions of AES and SHA1 for ARM platforms.  This has provided
up to a 50% improvement in IPsec/TCP throughout for tunnels using AES128/SHA1.

Platform   CPU SPeed    Endian   Before (bps)   After (bps)   Improvement

IXP425      533 MHz      big     11217042        15566294        ~38%
KS8695      166 MHz     little    3828549         5795373        ~51%

Signed-off-by: David McCullough <ucdevel@gmail.com>
defconfig: enable optimized AES and SHA1 crypto engines

Change-Id: I2eef86c7ee8c1e883e364f0f6bd80eea6c75c487
Revert "jf: don't build QCOM crypto engine as a module"

This reverts commit d7b0d50323e1d570f1eea230db26eab8a748ac66.
Revert "jf: make TUN a module"

This reverts commit fc830368d7b6e461bccfb5d9d3c9b82ed4e6767e.
USB force fast charging

-Use base from Chad Froebel <chadfroebel@gmail.com> so we continue to
use the same generic sysfs mechanism

-Referenced franco's git for drivers/usb/otg/msm_otg.c changes
https://github.com/franciscofranco/mako/commit/5a8a4c8e23c7e1df39c740b9ce1d5dda20b0ede3

Off by default

Turn on:
echo 1 > /sys/kernel/fast_charge/force_fast_charge

Turn off:
echo 0 > /sys/kernel/fast_charge/force_fast_charge

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Conflicts:

	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile

Conflicts:

	arch/arm/mach-msm/Makefile

Change-Id: I31f9701385b0defa00baf1af5c9bb33bc88c0e4a
import intellidemand from Faux's kernel source
defconfig: enable intellidemand

Change-Id: I920a36c3ca0848df57a9bd91a7478e379cfd393f
Add SIO I/O scheduler

Conflicts:
	block/Makefile

Conflicts:

	block/Kconfig.iosched
	block/Makefile

Change-Id: Ib90dd7138fb06bde0fa04f758c108ef115d13ef9
Voltage Control: initial voltage control for MSM S4-Pro SOC

Signed-off-by: faux123 <reioux@gmail.com>

Conflicts:
	arch/arm/mach-msm/Kconfig

Conflicts:

	arch/arm/mach-msm/Kconfig
Voltage Control: add sysfs interface

Signed-off-by: faux123 <reioux@gmail.com>
scheduler: compute time-average nr_running per run-queue

Compute the time-average number of running tasks per run-queue for a
trailing window of a fixed time period. The detla add/sub to the
average value is weighted by the amount of time per nr_running value
relative to the total measurement period.

Change-Id: I076e24ff4ed65bed3b8dd8d2b279a503318071ff
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit 3a12d7499cee352e8a46eaf700259ba3c733f0e3)
Reviewed-on: http://git-master/r/111635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

forward ported to Linux 3.4 for use on Mako

Signed-off-by: faux123 <reioux@gmail.com>

Conflicts:
	kernel/sched/sched.h

Conflicts:

	kernel/sched/sched.h