uhid: backport from 3.4

Change-Id: Ic48f83f4ed405048ff1e08c04768ed0baefe1caf
Added UHID + SEC_LOG + LOG_LAST_KMSG
 android/lowmemorykiller: Wait for memory to be freed

The memory reclaim code needs to give time to the system to
return the memory from a killed process otherwise the memory
reclaim code could run continuously, in multiple threads,
which could starve both the watchdog thread and the thread
which is responsible for returning the memory from the
killed process.

Change-Id: Ieded4bfe038ca936247fa4b638070e979b02eaa1
CRs-fixed: 447740
Signed-off-by: Liam Mark <lmark@codeaurora.org>
modified for Mako from CAF reference

Signed-off-by: faux123 <reioux@gmail.com>
 Staging: android: binder: Fix memory leak on thread/process exit

If a thread or process exited while a reply, one-way transaction or
death notification was pending, the struct holding the pending work
was leaked.

Change-Id: I2eaafaba1c0ecda3ec0872d449dc16d0721c21e7
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
 Staging: android: binder: Add binder buffers to kmemleak

Some binder_transaction structs are only referenced by a
binder_buffer. This could cause kmemleak to report them as
unreferenced.

Change-Id: I939540faa547afac4284f70f0e08ceb57a7a823d
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
binder: syntax fixing
Use ccache so that it recompiles faster after a make clean. +MORE

Fixed all may be used uninitialized!
+ dead code remove. our cpu is 4120
OK, TESTING: lib/string & lib/memcpy: use GNU implementation.
+ mm-drop_swap_cache_aggressively -> http://ck.kolivas.org/patches/3.0/3.8/3.8-ck1/patches/mm-drop_swap_cache_aggressively.patch
+ mm-idleprio -> http://ck.kolivas.org/patches/3.0/3.8/3.8-ck1/patches/mm-idleprio_prio-1.patch

I have changed "SCHED_IDLEPRIO" to "SCHED_IDLE" ...
Ported fixed function for mmc/card/block.c from 3.8.y + config.
Disabled CONFIG_CROSS_MEMORY_ATTACH, used for X86 and powerpc builds.
we use ARM, so not needed functions.
Tuned All I/O Govs to deliver better performance for ANDROID.
we want to give little more time to finish read/write before sync
so it's may prevent lag if sio/vr/zen/deadline govs used.

noop/fifo donr have any controls.
and row/bfq/cfq code not allow much tuning.

cfq + bfq made for HDD DISKS so we can disable them for good.
all the rest ok for android ssd flash cards.
Merge remote-tracking branch 'dorimanx/master-jelly-cm-aokp' into master-3.0.y

Conflicts:
	Makefile
	arch/arm/lib/Makefile
	drivers/staging/android/binder.c
	drivers/staging/android/lowmemorykiller.c
	lib/Makefile

+ ...
+ only a little syntax fix ...
+ fix "bfq"
+ "In compiling the kernel, ccache doesn't help at all for most cases." -> "ccache -s" -> cache hit (direct) 0