Revert "fix for app-mounted directories (thanks @mkasick)"

This reverts commit ecb495df45acf146826dff47dc450c1cbd6d5d94.

Conflicts:
	fs/Kconfig
looks like i overlooked this one, bad merging,,, bad

Signed-off-by: thirdzcee <ironbuang@gmail.com>
defconfig update

Signed-off-by: thirdzcee <ironbuang@gmail.com>
Revert "Revert "fix for app-mounted directories (thanks @mkasick)""

This reverts commit 1590f813b7c4e3916d56030a0d99bbef6feb5a8b.
Revert "drivers: usb: Use Android device as USB keyboard/mouse"

This reverts commit f0eaf30284c7da676667c8fbe3955591bf41b333.
Revert "Revert "drivers: usb: Use Android device as USB keyboard/mouse""

This reverts commit d67ece96ad2264de22f604ef3b302d4ee9417a2f.
enable intelliplug again since ill be using it as default now

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
SCHEDULER: Autogroup patch group by current user android UID instead of task ID

(cherry picked from commit 9c5a2cb232248af7ebff71d488de7453c93b5214)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
update defconfig
fix stupid previous declaration of ‘limited_max_freq’

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
Initial merging of my custom work from pre 4.3. A bit dirty commit but I all the commits are on the nightlies branch.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 76f0d891f089d42e331f6f65406d00b9e8cb0db0)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	Makefile
	arch/arm/mach-msm/Makefile
	drivers/cpufreq/cpufreq_interactive.c
	drivers/thermal/msm_thermal.c
msm: thermal: increase the threshold to 70ºC and decrease the threshold delta to 5ºC after the device is throttled.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 2fb759bdf9d1b54bb907aad43ad408461a3539db)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
drivers: thermal: add a panic thermal throttle level. Also properly throttle the CPU policies if the CPU is pegged to 100% load for a long time because just by adjusting the limits would throttle the CPUs just by itself unless the frequency dropped by <= throttled frequency.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 7e336e6006987ba74d2250a7dfa84c14ef7173c3)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
drivers: thermal: protect against race conditions. Won't get the policy if the cpu is offline and it won't decrease the current freq if the max is <= throttled freq. Also block any hotplug work during thermal throttling phase.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit edf751924c624eb382ae5580a5442b908ca34d31)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
drivers: thermal: temporarily remove a piece of code - needs more work that I thought.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit bf37d8224f24d28d56587d3aad162a6cd6340994)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
msm: thermal: merge driver improvements from hammerhead.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 4e0efc6b08c0edede4b677143e50eac6aad1922e)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
msm: thermal: improve robustness of the thermal throttle routine.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
(cherry picked from commit def05c455568064cf9dc4497b591d98038c8e621)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
thermal: code cleanup.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
(cherry picked from commit 86d3592a485cf6fcbc68e921cb2e903f9e9f4b97)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
msm: thermal: do not trigger the verify within limits when cpus go online/offline. Also do not make the workqueue available to the freezer path, we want the workqueue to be active and ready to recieve new works even during freezer phase.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
(cherry picked from commit e0f24e8ac2543525c1135d8b63c9afe24e9a100b)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
msm: thermal: fix a bug where if a user underclocked + got thermal throttled he couldn't move max freq past the underclocked value.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
(cherry picked from commit b36d76632e5238b1b83447c213a66727cd70ab60)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>