lib: Improve the performance of memcpy and memmove of the general version

The performance of memcpy and memmove of the general version is
very inefficient, this patch improves them.
kernel: Prevent unnecessary rfkill event generation.

Prevent unnecessary rfkill event generation when the state has
not actually changed. These events have to be delivered to
relevant userspace processes, causing these processes to wake
up and do something while they could as well have slept. This
obviously results in more CPU usage, longer time-to-sleep-again
and therefore higher power consumption.

Change-Id: I3ac4e141fbdf1315b74d3bad6aa96f34b00c3f92
CRs-fixed: 398283
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Mykyta Iziumtsev <nikita.izyumtsev@gmail.com>
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
patched vm_max_readahead
forgot this in SLQB commit
sched: disable GENTLE_FAIR_SLEEPERS
fix rpcrouter typo
iosched: tweak deadline for flash usage
some optimizations
cgroups: export cgroup_iter_{start,next,end}

    Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
show WIFI networks with low signal
lower swappiness to 0
optimize xz wrapper to speed up boot time (sar castillo)
Hack for CRT animations fix

Based of of CM team's fix:
https://github.com/CyanogenMod/android_kernel_samsung_t1/commit/7dfa557a301e07c91793727623f99f5b0d9cbf19
cpufreq: conservative: tune for performance (franciscofranco)
mm: writeback: every 500ms the writeback daemon kicks in and flushes the dirty pages into disk. Thats not very pleasant for performance and *maybe* battery. This patch disables the writeback function while the screen is on, and enables it back when the screen is off to flush all the dirty pages. In my real world usage testing I notice a slight bump in smoothness and performance while using the device. (franciscofranco)
thunderg: WIFI PM = FAST.
increase vibration
Add optimized CRC32 algorithm (Ezekeel)
Prevent aliased requests from starving other I/O
msm: cpufreq: Do not call a cpu transition if selecting the same speed. (LorDClockaN)