cpufreq: conservative: Set MIN_LATENCY_MULTIPLIER to 20

Currently MIN_LATENCY_MULTIPLIER is set defined as 100 and so on a system with
transition latency of 1 ms, the minimum sampling time comes to be around 100 ms.
That is quite big if you want to get better performance for your system.

Redefine MIN_LATENCY_MULTIPLIER to 20 so that we can support 20ms sampling rate
for such platforms.

Signed-off-by: faux123 <reioux@gmail.com>
cpufreq: ondemand: Set MIN_LATENCY_MULTIPLIER to 20

Currently MIN_LATENCY_MULTIPLIER is set defined as 100 and so on a system with
transition latency of 1 ms, the minimum sampling time comes to be around 100 ms.
That is quite big if you want to get better performance for your system.

Redefine MIN_LATENCY_MULTIPLIER to 20 so that we can support 20ms sampling rate
for such platforms.

Signed-off-by: faux123 <reioux@gmail.com>
d2: Consolidate VZW & USCC into single defconfig

Change-Id: Ia2ceb913a45dba28ad1b3c34522d0288b018845d
d2:defconfig:EXT FS changes

Change-Id: I79671977856cbcac107d177309e17c5c564de02b
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
cpufreq: Tweak conservative and interactive for battery savings

Change-Id: I35254978667d7b1eaece6ce6e028659e8757973b
mach-msm:m2-pmic: Implement quick calibration

Change-Id: I2cc6782bba5d19ce134034477012f961a21263bd
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
acpuclock-8960: add 192mhz slot

Change-Id: I6680d1d4e98bbefee0d389950aa3598f94f88659
Low CPU Clocks: Allow ultra low CPU frequencies for better battery performance

while screen is on or background operations like audio books and music
* Modified for Krait 8960 SoC.

Change-Id: Iafb60d7083e14065a71e1c80b194ef5a823db3fb
Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
cpufreq: allow for low CPU clock policy when hotplugging new cores

* Also fix brace derp from previous

Change-Id: I628eac9b66d6af5fb1bd90477dc0e9ce490810e9
Signed-off-by: faux123 <reioux@gmail.com>
d2: Update defconfigs

Change-Id: Iabe35d8ddfbf9be1126f6e8bfa386f01e1eebaa4
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
d2: Re-enable MSM_CPU_FRE_SET_MIN_MAX

Change-Id: I2b626d47fc12bc4f41377f9fe6089936944f051b
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
msm: Increase watchdog pet and bark times

Change-Id: Iaa4ad3c86c283edf91af931b7bf6ccc463074e05
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
mm: Increase ksm_thread values

ksm_thread_pages_to_scan
ksm_thread_sleep_millisecs
lib/memcopy: use glibc version

the kernel's memcpy and memmove is very inefficient. But the glibc version is
quite fast, in some cases it is 10 times faster than the kernel version. So I
introduce some memory copy macros and functions of the glibc to improve the
kernel version's performance.

The strategy of the memory functions is:
1. Copy bytes until the destination pointer is aligned.
2. Copy words in unrolled loops.  If the source and destination are not
   aligned in the same way, use word memory operations, but shift and merge
   two read words before writing.
3. Copy the few remaining bytes.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
lib/string: use glibc version

the performance of memcpy and memmove of the general version is very
inefficient, this patch improved them.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
Optimized ARM RWSEM algorithm

RWSEM implementation for ARM using atomic functions.
Heavily based on arch/sh/include/asm/rwsem.h

Signed-off-by: Ashwin Chaugule <ashwinc@codeaurora.org>
switch do_fsync() to fget_light()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arm/crypto: Add optimized AES and SHA1 routines

Add assembler versions of AES and SHA1 for ARM platforms.  This has provided
up to a 50% improvement in IPsec/TCP throughout for tunnels using AES128/SHA1.

Platform   CPU SPeed    Endian   Before (bps)   After (bps)   Improvement

IXP425      533 MHz      big     11217042        15566294        ~38%
KS8695      166 MHz     little    3828549         5795373        ~51%

Signed-off-by: David McCullough <ucdevel@gmail.com>
Signed-off-by: faux123 <reioux@gmail.com>
fs/dyn_sync_cntrl: dynamic sync control

The dynamic sync control interface uses Android kernel's unique early
suspend / lat resume interface.

While screen is on, file sync is disabled
when screen is off, a file sync is called to flush all outstanding writes
and restore file sync operation as normal.

Signed-off-by: Paul Reioux <reioux@gmail.com>
fs/dyn_sync_cntrl: Linux 3.4 Kernel compatibility fixup

Signed-off-by: faux123 <reioux@gmail.com>