add extra free kbytes tunable

Add a userspace visible knob to tell the VM to keep an extra amount
of memory free, by increasing the gap between each zone's min and
low watermarks.

This is useful for realtime applications that call system
calls and have a bound on the number of allocations that happen
in any short time period.  In this application, extra_free_kbytes
would be left at an amount equal to or larger than than the
maximum number of allocations that happen in any burst.

It may also be useful to reduce the memory use of virtual
machines (temporarily?), in a way that does not cause memory
fragmentation like ballooning does.

[ccross]
Revived for use on old kernels where no other solution exists.
The tunable will be removed on kernels that do better at avoiding
direct reclaim.

Change-Id: I765a42be8e964bfd3e2886d1ca85a29d60c3bb3e
Signed-off-by: Rik van Riel<riel@redhat.com>
Signed-off-by: Colin Cross <ccross@android.com>
S5PC11X: JPEG: add ioctl to export memory configuration

This allows userspace libs3cjpeg to read memory configuration
from the kernel instead of using the hardcoded value.

Change-Id: I61248d659dbccf2e6cc656adc7fdf18773c2fcbd
aries: optimize JPEG memory configuration

Only 1MB is required for encoding of VGA JPEG images (used by FFC).
Note that thumbnail encoding function is not used.

Requires userspace change (http://review.cyanogenmod.org/56795).

Change-Id: Icea2fc74dfc692d98ae041b785238d6b847c4ddd

Conflicts:
	arch/arm/mach-s5pv210/mach-aries.c
ARM: kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS for CPUv6+ && MMU

Modern ARM CPUs can perform efficient unaligned memory accesses in
hardware and this feature is relied up on by code such as the dcache
word-at-a-time name hashing.

[pawitp: adapt to kernel 3.0]

Change-Id: I41559fc9255229e2601f4bef28aa8d48246156b7
Signed-off-by: Will Deacon <will.deacon@arm.com>
s3cfb: tl2796: do not read calibration data on aries

The original driver on aries kernel did not read this data and
some devices do not come properly calibrated. Solves the
"blue screen" issue experienced by some users.

Change-Id: I13f60ff0e4079dad9dc37cf43894d792fc137235
Revert "s3cfb: tl2796: do not read calibration data on aries"

Causes yellowish screen for some users.

This reverts commit 0ed294753497de0b2d5b69c9975d8f174e9464d6.

Change-Id: Ief57842517e4cdf9ed5c2f33b2c0304b0866fec2
s3cfb: tl2796: detect invalid factory calibration data

When an invalid factory calibration data is detected, use some sane
defaults.

Change-Id: I0095e1a4f530e61bb4f53a3aeed3fb4c01ea4e22
Revert "ARM: kconfig: select HAVE_EFFICIENT_UNALIGNED_ACCESS for CPUv6+ && MMU"

This reverts commit 7bd601da5d487e2fc83bb8827fccd9977f95349f.
3.4.1

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
config: Sync captivate and vibrant configs

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
3.4.2

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
3.4.3

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Merge remote-tracking branch 'stratosk/kk-4.4' into kk-4.4