Optmize ashmem
ARM: 7467/1: mutex: use generic xchg-based implementation for ARMv6+ This patch uses the generic xchg based implementation for mutexes on ARMv6+, which introduces barriers to the lock/unlock operations and also has the benefit of removing a fair amount of inline assembly code. Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Nicolas Pitre <nico@linaro.org> Reported-by: Shan Kang <kangshan0910@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: KaSt <k@ka.st>
arch: arm: new flags

Signed-off-by: KaSt <k@ka.st>
Increase MAX and MIN readahead

Signed-off-by: KaSt <k@ka.st>
Updated GPU video drivers

Signed-off-by: KaSt <k@ka.st>
Revert "arch: arm: new flags"

This reverts commit 6d6992483c3d5421d5e073260aa2b9489be26247.
Add dynamic page-writeback control echo 1 > /sys/class/misc/wirteback/writeback_enabled
(1 = enabled (default), 0 = disabled)
readahead: introduce FMODE_RANDOM for POSIX_FADV_RANDOM

This fixes inefficient page-by-page reads on POSIX_FADV_RANDOM.

POSIX_FADV_RANDOM used to set ra_pages=0, which leads to poor performance:
a 16K read will be carried out in 4 _sync_ 1-page reads.

In other places, ra_pages==0 means
- it's ramfs/tmpfs/hugetlbfs/sysfs/configfs
- some IO error happened
where multi-page read IO won't help or should be avoided.

POSIX_FADV_RANDOM actually want a different semantics: to disable the
*heuristic* readahead algorithm, and to use a dumb one which faithfully
submit read IO for whatever application requests.

So introduce a flag FMODE_RANDOM for POSIX_FADV_RANDOM.

Note that the random hint is not likely to help random reads performance
noticeably.  And it may be too permissive on huge request size (its IO
size is not limited by read_ahead_kb).

In Quentin's report (http://lkml.org/lkml/2009/12/24/145), the overall
(NFS read) performance of the application increased by 313%!

Tested-by: Quentin Barnes <qbarnes+nfs@yahoo-inc.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: <stable@kernel.org>			[2.6.33.x]
Cc: <qbarnes+nfs@yahoo-inc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Conflicts:
	mm/readahead.c

Change-Id: Ie70f158ac48869a3795dcd7b059d7bc28157fe84
Signed-off-by: KaSt <k@ka.st>
aio: implement request batching

Hi,

Some workloads issue batches of small I/O, and the performance is poor
due to the call to blk_run_address_space for every single iocb.  Nathan
Roberts pointed this out, and suggested that by deferring this call
until all I/Os in the iocb array are submitted to the block layer, we
can realize some impressive performance gains (up to 30% for sequential
4k reads in batches of 16).

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: KaSt <k@ka.st>
sched: Rate-limit newidle

Rate limit newidle to migration_cost. It's a win for all
stages of sysbench oltp tests.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Conflicts:
	kernel/sched.c

Change-Id: If17b390be03261f8a8e687c4770ee9a7f3e209e9
Signed-off-by: KaSt <k@ka.st>
Some kmemleak fixes

Signed-off-by: KaSt <k@ka.st>
grants system access to /proc/<pid>/oom_adj for android apps

Signed-off-by: KaSt <k@ka.st>
Some interacitve adjustments

Signed-off-by: KaSt <k@ka.st>
shmem: reduce pagefault lock contention

Signed-off-by: KaSt <k@ka.st>
Set the effective priority of idleprio tasks

Signed-off-by: KaSt <k@ka.st>
Added cpu_pm

Signed-off-by: KaSt <k@ka.st>
Device config changes for cpu_pm support
init: calibrate.c backport from 3.0

Signed-off-by: KaSt <k@ka.st>
staging: android: backported from 3.3

Signed-off-by: KaSt <k@ka.st>
Revert "staging: android: backported from 3.3"

This reverts commit 241f902c00b07f4f88f7303814b0f523698985b4.