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>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpufreq: interactive: qqueue input boost to a high priority workqueue instead of having it go through the kthread speedchange path. This saves us spinlocks/unlocks everytime there's a touch and it saves us a couple ms to wait until the kthread is woken, then going through its code path, then the calculations, then finally calling the cpufreq target function. I measured a couple ms improvements in terms of responsiveness after touching the display and having cpufreq boosting the online cpus.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Revert "net: wireless: bcmdhd: Change the parameter for TDLS"

This reverts commit 5c5bd76fc41bd96563c069efa26d0dfa22b632d4.
Revert "net: wireless: bcmdhd: Enable IPv6 RA filter feature"

This reverts commit a0f3f27d6716abf0648239c21c51dfdccd09a314.
Revert "net: wireless: bcmdhd: enable TDLS_auto_mode"

This reverts commit 27a7a70e6dc933e7304f7c450131823de8ddba58.
Revert "net: wireless: bcmdhd: Set MAX_DTIM_ALLOWED_INTERVAL to 600"

This reverts commit 06e9b4e2568daeb12f39ed69df9552e8f1117533.
Revert "net: wireless: bcmdhd: Change DTIM skip policy in suspend"

This reverts commit c8092f60419fcec95cc5c4b458de9d6be2fc60fc.
Revert "net: wireless: bcmdhd: cancel current PNO if connection will happen"

This reverts commit cb894254263f46345cbc540bc325e85af61c0612.
Revert "net: wireless: bcmdhd: reduced the wakelock time of RX packet"

This reverts commit 5dd724eb19f768e641041a0b897c5e8464077949.
Revert "net: wireless: bcmdhd: Fixed a problem of buganizer issue (11190960)"

This reverts commit 24bf61016206ba6fb0edb2b4593f8197fd89137e.
Revert "net: wireless: bcmdhd: fixed power consumption issue of P2P."

This reverts commit 837961187ec3ecf82a11b89d7cf8fb267d3ed9ce.
Revert "net: wireless: bcmdhd: Fix country checking"

This reverts commit 7de625fa8c15106c1b1bd6147db42121186010d8.
ARM: msm: hammerhead: Fix VA locale revision

Bug: 11172689

Change-Id: I892ad17b0d336842aa77259b2aaab3b288bcdb3c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
net: wireless: bcmdhd: fixed power consumption issue of P2P.

	solution : add wake_lock not to go to suspend during removing P2P GO
	interface in wl_cfg80211.c.
	Description of this issue :
	if device goes to suspend during removing the interface,
	we will fail to remove P2P GO virtual
	interface(p2p-p2p0-0).
	This will causes P2P GO still alive in firmware
	Bugnizer case id : 10874302
	This issue is reported by LG team.
Signed-off-by: Ecco Park <eccopark@broadcom.com>

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
net: wireless: bcmdhd: Fix country checking

Bug: 11319610

Change-Id: I5c52ed594614d8039f167de3c98bd9f802b521df
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Revert "msm: kgsl: schedule the event queue after the dispatcher work queue"

This reverts commit 4f36f4e8474b15812f4d660206519b214daf5d06.

Change-Id: I2d9a7b89aebc7fb548531dbecb791f2b2f5b4526
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: kgsl: Re-run the events handler when inflight goes to zero

The event code is sensitive to race conditions with the GPU. We just
can't spend all day the event loops waiting for timestamp to expire.
The dispatcher loop on the other hand is far less sensitive to the
race with the GPU so we have a very good idea when the GPU is idle.

When inflight goes to zero re-run re-queue the event handler to catch
any stragglers.

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

Conflicts:

	drivers/gpu/msm/adreno_dispatch.c

CRs-fixed: 551825
Change-Id: Ic0dedbad9d02fca89724bf791d9c7212712a8014
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Jeff Boody <jboody@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
USB: android: Handle error conditions if usb_add_config fails

This is missing changes of commit 0f12d93e06af8 (USB: android: Handle error
conditions if usb_add_config fails" when cherry-picking this.

Change-Id: I9ce4f28c6af73420f6b8dda0f8538d2da114087d
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
bluetooth: unlock spin on bluesleep_stop before controling the hsuart power

Kernel migh be in sleep to wait for rpm communication when it controls the
hsuart power. So should unlock the spin before controling the hsuart
power.

Change-Id: Ic051ee95df8be3e7dcea1bc71cba85bdbab34bef
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm_serial_hs: Fix the unbalanced clk_count

If clock vote is failed, clk_count is added. It may cause the unbalanced
clk_count. Also it's possible to be nagative clk_count on unvote. So do
not decrease the clk_count if it's already zero.

Change-Id: Ic63efd9447a18caaa8fabada4d4cae90558c8785
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>