Revert "cpufreq: interactive: fix another derp, I was probably drunk when I merged the patch before."

This reverts commit 92aacff94f7f358172ddc199ee95264e3ea23810.

Change-Id: Icf5aa0ea98793b407440b290f1c8ff92d4fabc8b
Revert "cpufreq: interactive: fix derp."

This reverts commit 6302a52874567d1ce357c3ffc55bdb6077cdadc0.

Change-Id: Ie7e2bb93f43fbe967f561a6652caade08dd57d02
Revert "cpufreq: interactive: merge https://github.com/android/kernel_common/commit/4c7894cb01c7544225d5fcfb0fcb1d11fd2d1777 and fix a small code shit."

This reverts commit 8973321ffa892744e8d972497d002442e8d778ab.

Change-Id: Ia7096a572d862175418959dea3883670589f1168
Revert "cpufreq: interactive: Initialize spinlocks"

This reverts commit 1be9d4a3968d76c69cc1cc8275e0d10ff939600e.

Change-Id: Iac8c2ff81f4b639b7ee425ab1195ad974d720b82
Revert "interactive: touchboost tuning"

This reverts commit 7487ad3385dffdc5eb8da2cc9896fad8a17efda6.

Change-Id: Ic5addb91df75d23ddff66163dd1bbcdc50f34b5e
Revert "cpufreq: Fix policy getting stuck when user & kernel min/max don't overlap"

This reverts commit 060476dbdacef66510ec528021a266f8b67d73bf.

Change-Id: I335da7778b93aa3e7bb9c5dacfad9e37912e14dc
Sync Hotplug, Govs and Touch with Francokernel (reverted from commit bcfe9ec41c87623cbffca895d4d9d9e2e5e00eed)

Change-Id: If74606e315c515c187750b1c194a9f2d12a7b8b5
fix compile issues, remove CAF generic touchboost driver

Change-Id: Icef2165d1f4c7685a8bee74564702fec05ab0789
mako_hotplug: fix a small bug.

Change-Id: I3a78a52bd193ebbe9e53f9d2bf3f47f1b4cc63f7
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 45ab74c129dd05c92c283c5d2e5f2c9ef96326d9)
mako_hotplug: fix styling.

Change-Id: Ic26777aa3d9525937b4e1386921d8522ac661f6a
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 63dc43189b2939d12d95a8c683e3b22e2e6fad59)
mako_hotplug: simplify whole process, I was not happy with the solution of cpu0->cpu2 / cpu1->cpu3 logic. And besides it created extra overhead.

Change-Id: I40bd3ee79ce445315138fa162eaa3fc6dddf132a
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit fc1e6d99cc543cee7bff5b071575d7c4cbb296ab)
Add my Hotplug driver code. All previous commits are squashed into this version.

Change-Id: I604ceb0853f1c6444422325f11e01f4297c5a2a9
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com> (reverted from commit 231e9785339d227a0f91c1e19a88148e54c5db05)
update all defconfigs

Change-Id: Ie7d59879745db8a48057b9bd3060beb6e08d4fa0
msm8974: Adapt memutils optimizations from msm8960pro

Preload farther to take advantage of the memory bus, and assume
64-byte cache lines.  Unroll some pairs of ldm/stm as well, for
unexplainable reasons.

Future enhancements should include,

- #define for how far to preload, possibly defined separately for
  memcpy, copy_*_user
- Tuning for misaligned buffers
- Tuning for memmove
- Tuning for small buffers
- Understanding mechanism behind ldm/stm unroll causing some gains
  in copy_to_user

BASELINE (msm8960pro):
======================================================================
memcpy 1000MB at 5MB       : took 808850 usec, bandwidth 1236.236 MB/s
copy_to_user 1000MB at 5MB : took 810071 usec, bandwidth 1234.234 MB/s
copy_from_user 1000MB at 5M: took 942926 usec, bandwidth 1060.060 MB/s
memmove 1000GB at 5MB      : took 848588 usec, bandwidth 1178.178 MB/s
copy_to_user 1000GB at 4kB : took 847916 usec, bandwidth 1179.179 MB/s
copy_from_user 1000GB at 4k: took 935113 usec, bandwidth 1069.069 MB/s
copy_page 1000GB at 4kB    : took 779459 usec, bandwidth 1282.282 MB/s

THIS PATCH:
======================================================================
memcpy 1000MB at 5MB       : took 346223 usec, bandwidth 2888.888 MB/s
copy_to_user 1000MB at 5MB : took 348084 usec, bandwidth 2872.872 MB/s
copy_from_user 1000MB at 5M: took 348176 usec, bandwidth 2872.872 MB/s
memmove 1000GB at 5MB      : took 348267 usec, bandwidth 2871.871 MB/s
copy_to_user 1000GB at 4kB : took 377018 usec, bandwidth 2652.652 MB/s
copy_from_user 1000GB at 4k: took 371829 usec, bandwidth 2689.689 MB/s
copy_page 1000GB at 4kB    : took 383763 usec, bandwidth 2605.605 MB/s

Change-Id: I34b4d8277386e078f8117b7115cd40fc190d1ffa
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Conflicts:
	arch/arm/mach-msm/Kconfig
	arch/arm/mach-msm/Makefile
Optimize kernel build flags

Change-Id: I08a82e2eb6fc13c1b89fb99f8ed4a9cbcc383491
reduce wlan_ctrl_wake and wlan_rx_wake wakelocks
Based off original commit with credits
to @flar2 @semdoc

Change-Id: I641ae45c4e850c34102402589622ff68ba633938
cpufreq: Introduce new relation for freq selection

Introduce CPUFREQ_RELATION_C for frequency selection.
It selects the frequency with the minimum euclidean distance
to target. In case of equal distance between 2 frequencies,
it will select the greater freq.

Change-Id: I61192a4065fddf567bcc97e066408135658fe46d
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Override allowed tcp congestion control algorithms to what's available in kernel

This allows proper setting of default algorithm if outside available.

Change-Id: Icaa25f8b76abd7f108c75b9beded9714b0f77fd4
Add BFQ/SIO/FIOPS/ZEN/VR IO Schedulers

I8a4cf1189278b25ece34cd4eebca5734ce57a9c5

Change-Id: Ia34161120ae5d01affb7cfde7ea78f1b11b236e1
Add /dev/frandom