string should not be there

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
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>
(cherry picked from commit 607e8be1779a66f711eb7bdb2b1d9e87c6f06cd1)
Signed-off-by: thirdzcee <thirdzcee@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>
(cherry picked from commit fa97c2086987bed479f6ba301024eb9c95d203d1)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
Revert "GPU: add optimization flags to GPU drivers"

This reverts commit b56ce7daf949029c085d85f4348af5651208802c.
(absolute) Voltage control.

This started out as just including the existing work of someone else.
But that was so obfuscated and needlessly moved in sysfs, i turned it into the type control
we have on NP, meaning same sysfs location and output formatting.
Since the various kernels range from no preUV to different levels of UV it is best to encourage the user
to think in absolute voltages.
"I can UV -150 on kernel X! Really? Odd, i can only UV kernel Y -50mV!"
Kernel X has no preUV, kernel Y has 100mV preUV, so they both run the same.
This is needlessly confusing to users.

Talking in absolutes, users will get a better understanding of "what the other guy's" device is capable of.
Sticking to a common sysfs location and to the common absolute voltage is thus the right thing to do.

This seems to work now as it should.

This is heavily based on coolbho3k's NP patch. from Paul's mess we might have a few function names, but not the contents.
This is not his, if he claims otherwise, he can go fuck himself.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 48e00743741efa77964781465baf35b3641ec98d)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	arch/arm/mach-msm/Kconfig
Revert "Revert "GPU: add optimization flags to GPU drivers""

This reverts commit 83d49b9d4e73699810ea92b5fef43df64f9dbb65.
logger: Add an enable toggle for entry storage

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
(cherry picked from commit 5f06286646fdad7aaca859bdfe024ef29967eb46)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	drivers/staging/android/logger.c
block: row: add magic values.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
(cherry picked from commit 08c50439261f099b4d26d597613e36be3bd515c0)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
use some of kt747 code to get the touchpanel running so s2w and d2w from faux works and some adaptation of s2w for d2 :)

Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	drivers/input/touchscreen/sweep2wake.c
cleaning up unused stuff

Signed-off-by: thirdzcee <ironbuang@gmail.com>
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	drivers/input/touchscreen/mms_ts_144.c
GPU oc

Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:
	arch/arm/configs/torched_elite_defconfig
	arch/arm/mach-msm/Kconfig

Conflicts:
	arch/arm/configs/cyanogen_d2dcm_defconfig
	arch/arm/mach-msm/Kconfig

(cherry picked from commit d3dfbac6b55f6074ad9de7cd08c518da28560f75)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
initial s2w dt2w code import from @showp1984

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: thirdzcee <thirdzcee@gmail.com>

Conflicts:

	drivers/input/touchscreen/Kconfig

Conflicts:
	drivers/input/touchscreen/Makefile

(cherry picked from commit acb6f2df29146e9f6784e99df753324901b8c938)
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
restrict to bottom of screen, reduce feather radius, shorten time window, disable near edges

Signed-off-by: flar2 <asegaert@gmail.com>
(cherry picked from commit b066db0f8aadeb347b015d9a809d39a1a4ac9ae3)
Signed-off-by: thirdzcee <ironbuang@gmail.com>
doubletap2wake: back to full screen, make a bit more sensitive

Signed-off-by: flar2 <asegaert@gmail.com>
(cherry picked from commit c9662c0b1fd9a14ee573cad15c2f0c4809e32300)
Signed-off-by: thirdzcee <ironbuang@gmail.com>
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
fullscreen option

Signed-off-by: flar2 <asegaert@gmail.com>
(cherry picked from commit 63221242232c8555dd742d8f4b9e789e2a8f42f9)
Signed-off-by: thirdzcee <ironbuang@gmail.com>
Signed-off-by: thirdzcee <thirdzcee@gmail.com>
tune sweep2wake sweeps for d2

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
better add my config file before i nuke everything with clear and mrproper :P

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
ARM:enable pipe flag

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
enable unaligned access

Signed-off-by: thirdzcee <thirdzcee@gmail.com>
group tasks into the least number of cores possible for moar powah savings!!!

Signed-off-by: thirdzcee <thirdzcee@gmail.com>