memcopy optimize
 Permanent filesystem TRIM
[PATCH 2/2] mm: forcely swapout when we are out of page cache

In many occasions VM tries to avoid I/O for saving the power.
But if there isn't reclaimable memory without I/O, we should do I/O
to prevent unnecessary OOM kill although we sacrifice power.

One of example is that we are out of page cache. Remained one is
only anonymous pages, for swapping out, we needs may_writepage = 1.

Reported-by: Luigi Semenzato <semenzato@google.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
 ARM: 7592/1: nommu: prevent generation of kernel unaligned memory acc… …

…esses

Recent ARMv7 toolchains assume that unaligned memory accesses will not
fault and will instead be handled by the processor.

For the nommu case (without an MPU), memory will be treated as
strongly-ordered and therefore unaligned accesses may fault regardless
of the SCTLR.A setting.

This patch passes -mno-unaligned-access to GCC when compiling for nommu
targets, preventing the generation of unaligned memory access in the
kernel.

Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Jonathan Austin <jonathan.austin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

b7cf3bce53 Browse code
Will Deacon authored a year ago

====================================

 BUILDFLAGS: optimize for armv7-a, cortex-a8
c8034bb3da Browse code
Talustus authored 10 months ago
gpu: pvr: we have cortex a9

Signed-off-by: Willi Ye <williye97@gmail.com>
csnappy: Update to newest version

Pulled on 18/04/2013