reorganize defconfigs
added simple I/O scheduler

Conflicts:

	block/Kconfig.iosched

Signed-off-by: Nathan Chan <e334cn@gmail.com>
lib: introduce some memory copy macros and functions

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@xxxxxxxxxxxxxx>

Conflicts:

	lib/Makefile
Signed-off-by: Nathan Chan <e334cn@gmail.com>
lib: improve the performance of memcpy and memmove of the general version

Signed-off-by: Nathan Chan <e334cn@gmail.com>
lowmemorykiller: Don't try to kill the same pid over and over

  Under certain circumstances, a process can take awhile to
handle a sig-kill (especially if it's in a scheduler group with
a very low share ratio). When this occurs, lowmemkiller returns
to vmscan indicating the process memory has been freed - even
though the process is still waiting to die. Since the memory
hasn't actually freed, lowmemkiller is called again shortly after,
and picks the same process to die; regardless of the fact that
it has already been 'scheduled' to die and the memory has already
been reported to vmscan as having been freed.

  Solution is to check fatal_signal_pending() on the selected
task, and if it's already pending destruction return; indicating
to vmscan that no resources were freed on this pass.

Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Nathan Chan <e334cn@gmail.com>
Restore elevator_queue_empty for SIO scheduler

Signed-off-by: Nathan Chan <e334cn@gmail.com>
Added Snapdragon optimizations

Signed-off-by: Nathan Chan <e334cn@gmail.com>
fbmem override refresh rate for Sense 4

Signed-off-by: Nathan Chan <e334cn@gmail.com>
Fix cifs error for GCC 4.7

https://git.samba.org/sfrench/?p=sfrench/cifs-2.6.git;a=commitdiff;h=b2a3ad9ca502169fc4c11296fa20f56059c7c031

Signed-off-by: Nathan Chan <e334cn@gmail.com>
Fix arm-eabi-ld: error: DIV usage mismatch

arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output

Signed-off-by: Nathan Chan <e334cn@gmail.com>
SCHEDULER: Autogroup patch group by current user android UID instead of task ID

Signed-off-by: Nathan Chan <e334cn@gmail.com>