NET: Android BT updates from 3.8.RC7 PART 4 :)

made some restores to fix BT for JB SAMMY and ICS.
now OK.
Nightmare some little adjustments!
Nightmare Gov.... Implemented transition_latency settings configurable!
Nightmare Gov. removed white spaces
Nightmare gov. some little changes!
Removed s3c24xx_i2c_doxfer debug.
it's was shown in dmesg and tell us the sleep time out is 0
on boot.
+ Patch 3.0.63 Main Stream (http://www.kernel.org/pub/linux/kernel/v3.0/incr/)
mm: don't overwrite mm->def_flags in do_mlockall()

With commit 8e72033f2a48 ("thp: make MADV_HUGEPAGE check for
mm->def_flags") the VM_NOHUGEPAGE flag may be set on s390 in
mm->def_flags for certain processes, to prevent future thp mappings.
This would be overwritten by do_mlockall(), which sets it back to 0 with
an optional VM_LOCKED flag set.

To fix this, instead of overwriting mm->def_flags in do_mlockall(), only
the VM_LOCKED flag should be set or cleared.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reported-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
memcg: fix kmemcg registration for late caches

The designed workflow for the caches in kmemcg is: register it with
memcg_register_cache() if kmemcg is already available or later on when a
new kmemcg appears at memcg_update_cache_sizes() which will handle all
caches in the system.  The caches created at boot time will be handled
by the later, and the memcg-caches as well as any system caches that are
registered later on by the former.

There is a bug, however, in memcg_register_cache: we correctly set up
the array size, but do not mark the cache as a root cache.

This means that allocations for any cache appearing late in the game
will see memcg->memcg_params->is_root_cache == false, and in particular,
trigger VM_BUG_ON(!cachep->memcg_params->is_root_cache) in
__memcg_kmem_cache_get.

The obvious fix is to include the missing assignment.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm: cma: fix accounting of CMA pages placed in high memory

The total number of low memory pages is determined as totalram_pages -
totalhigh_pages, so without this patch all CMA pageblocks placed in
highmem were accounted to low memory.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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*******>
adapted by faux123 for 3.0.13 kernel

Conflicts:
	lib/string.c

+ ...
Restored all code from old kernel versions and merged with latest new JB SAMSUNG!. Nightmare Gov. tuned and cleaned!
JB KERNEL NEW SOURCE! firmware/ full port. no idea if needed.
but sammy source updated many of the files.
so why not get them here :)
Kernel cleaning! all that deleted is NOT USED! nothing to see here.
Revert "Added also "fimc0" to CMA RAM securiy bypass."

This reverts commit 77bc0876e832da6c68ace0263419cea51026a2f4.
Revert "exynos-mem: Fix major security hole, FIX for allow FIMC1+2+3"

This reverts commit 7f131db431fbd5e545302295962d1620c6552fd9.
Revert "exynos-mem: Fix major security hole, + small fimc allow."

This reverts commit 02f66582c8c75c9de928dff4ac1e7502dce2ba4f.
Revert "mem: fix permissions on exynos-mem"

This reverts commit 6f23f7b0ada1a844daa9561b0d1db4684e2de209.
Made REVERTS to arch/arm/common/gic.c and friends to FIX old BUG!

BUG was in arch/arm/mach-exynos/mct.c
to fix this code i have restored small function in gic.c
but i didnt realized that it's belong to very big code that was missing.
so this was BUG. now it's gone.

i have reverted all that needed to have all functions in place for
arch/arm/mach-exynos/mct.c
JB SAMMY KERNEL SOURCE: Pulled latest Updates! more to port!

This update INCLUDE new ROOT HOLE CMA FIX by SAMMY!