cpufreq: interactive: Allow 1 ms error in above_hispeed_delay comparisons

Allow for an error of 1 ms while taking into account
above_hispeed_delay for a frequency

Change-Id: I744e44387152e4efb5978df4f2b9533bf79d4582
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
cpufreq: interactive: Reset floor_validate_time if busy at max for 100ms

When the interactive governor selects to run at max frequency it doesn't
re-schedule the timer until it hits an idle. This change checks if the CPU
has been continuously busy for last 100ms on hitting an idle start. If yes,
then floor_validate_time is reset so that the CPU stays at max frequency
for at least another 100 ms before stepping down.
This is an important feature for detecting CPU intensive workloads which
require high frequencies for achieving better performance.

Change-Id: I7d48ffbc3d50a80af9be3bf94667ee3d0120b763
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
cpufreq: interactive: Add a sampling_down_factor for max frequencies

Change min_sample_time to 100ms when running at max

Change-Id: Ia7e35b0625bedf20e7ef3a1f52e5828ffbfed93e
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
cpufreq: interactive: sync freq feature for interactive governor

1) Add load info to cpufreq_interactive_cpuinfo
2) If load on any other online cpu exceeds sync_freq_load_threshold,
   do not allow the frequency to drop below sync_freq

Change-Id: I3617e10f87b85178914a18bcf04ac2a31a4f1ec1
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
(cherry picked from commit c26e25944543c61b34b1830938bb6f353a2580ac)
cpufreq: interactive: Remove trace event from idle_start handler

Removed the trace_cpufreq_interactive_idle_start.
Also fix a crash resulting from accessing NULL policy before taking
the pcpu->enable_sem lock. The policy can be NULL if the core is
hotplugged out before the enable_sem lock is taken.

Change-Id: I7e2809cc016b3b383a44cdf3c697013e2d2b5417
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
(cherry picked from commit 3b7992b90216c74a9ae9ce0df90bc446687a2313)
pmic: re-enable power key reboot

Conflicts:
	drivers/mfd/pm8xxx-misc.c

Change-Id: I5809ca8488cb2fcd1748712b8c13efda6e5c6af3
enable hard reset for all models

d2vzw, Aegis2, Jasper all are Verizon models. Verizon is evil and
disables legitimate phone features just because they can.

Change-Id: I5a1f3841865dbeeca6bdcf217f4fe44c2123802c
dhd: Kang Decimalman's version of the driver

I tried to cherry-pick from his tree but nothing picked cleanly.
Supposedly fixes wakelocks or something

Change-Id: Ifa0982065316947975fcd1d8005353656ccfe4a5
m2: clean up and organize sensors

Change-Id: I4eb705af26752215b5f98c72b1d4ad7503e05718
Merge remote-tracking branch 'upstream/cm-11.0' into HEAD

Conflicts:
	drivers/net/wireless/bcmdhd/dhd_linux.c

Change-Id: Iee6af5014067749850069d1aee2117ff15303907