Add my Hotplug driver code. All previous commits are squashed into this version.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: thermal: add my msm thermal code.

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

Conflicts:
	drivers/thermal/msm_thermal.c
cpufreq: add generic get_cpuidle_time to the cpufreq headers so that we don't need to implement this everytime we need it.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
input: add generic touchboost driver based on CAF's cpu-boost driver code.

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

Conflicts:
	drivers/input/touchscreen/Makefile
Input: Send events one packet at a time

On heavy event loads, such as a multitouch driver, the irqsoff latency
can be as high as 250 us.  By accumulating a frame worth of data
before passing it on, the latency can be dramatically reduced.  As a
side effect, the special EV_SYN handling can be removed, since the
frame is now atomic.

This patch adds the events() handler callback and uses it if it
exists. The latency is improved by 50 us even without the callback.

Change-Id: Iebd9b1868ae6300a922a45b6d104e7c2b38e4cf5
Cc: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Input: Improve the events-per-packet estimate

The events-per-packet estimate has so far been used by MT devices
only. This patch adjusts the packet buffer size to also accomodate the
KEY and MSC events.  Keyboards normally send one or two keys at a
time. MT devices normally send a number of button keys along with the
MT information.  The buffer size chosen here covers those cases, and
matches the default buffer size in evdev. Since the input estimate is
now preferred, remove the special input-mt estimate.

Reviewed-and-tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
msm: enable 345MHz step, users with audio glitches or strange audio jitter can use this step as min freq and those problems are gone.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Fix qcom thermal breaking franco's code

Signed-off-by: dr87 <nb00870@gmail.com>
cpufreq: create a helper function to get CPU utilization. Picked from @stratosk

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Sync Hotplug, Govs and Touch with Francokernel
Thermal: Sync with franco, add my changes
interactive: touchboost tuning
mako_hotplug: simplify whole process, I was not happy with the solution of cpu0->cpu2 / cpu1->cpu3 logic. And besides it created extra overhead.

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

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mako_hotplug: fix a small bug.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Thermal: Switch to bricked

Signed-off-by: dr87 <nb00870@gmail.com>
bricked: add thermal_qcom
Add bricked thermal again
F320: Add bricked config
Fix LG messup

qcom,pmic-sw-mode-regs = "vdd_dig";

is not consistant with

qcom,vdd-rstr-reg = "vdd-dig";

Fix this to match as per the CAF source

Signed-off-by: dr87 <nb00870@gmail.com>
Bricked thermal: Fix compilation error