fix gcc4.7 compile
Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Fix Build
Make kernel compatible with gcc <=4.8
Use export TARGET_GCC=4.8 before compiling with a 4.8 toolchain

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Use -Wno-maybe-uninitialized when using -Os and gcc-4.8
Fix bugs with current flags: Use -Os since -O2 is unstable in gcc 4.8
use -gdwarf-2 when using -g + gcc 4.8
Add configurable options to enable gcc 4.8 fixes and optimizations and enable it in Galaxys4gmtd  defconfig
remove some flags
revert: remove some flags
fs/dyn_sync_cntrl: dynamic sync control
The dynamic sync control interface uses Android kernel's unique early
suspend / lat resume interface.

While screen is on, file sync is disabled
when screen is off, a file sync is called to flush all outstanding writes
and restore file sync operation as normal.

Signed-off-by: Paul Reioux <reioux@gmail.com>
fs/dyn_fsync: check dyn fsync control's active prior to performing fsync ops

Signed-off-by: Andrew Bartholomew <andrewb03@gmail.com>

Conflicts:
	fs/dyn_sync_cntrl.c

Conflicts:
	fs/sync.c
dynamic filesync: add some cache optimizations

and clean up file format and typos

bump version to 1.1

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	fs/dyn_sync_cntrl.c
dynamic fsync: add reboot notifier to force flush outstanding data

this should further prevent data corruption from kernel panics and
forced reboots

bump version to 1.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
dynamic fsync: add kernel panic notifier to force flush outstanding data

more paranoia safety checks

Signed-off-by: Paul Reioux <reioux@gmail.com>
dynamic fsync: favor true case since most will be using this feature

Signed-off-by: Paul Reioux <reioux@gmail.com>
dynamic fsync: don't disable fdatasync()

Signed-off-by: Paul Reioux <reioux@gmail.com>
mm: writeback: every 500ms the writeback daemon kicks in and flushes …
…the dirty pages into disk. Thats not very pleasant for performance and *maybe* battery. This patch disables the writeback function while the screen is on, and enables it back when the screen is off to flush all the dirty pages. In my real world usage testing I notice a slight bump in smoothness and performance while using the device.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Update lowmemorykiller from kernel ~3.6

Conflicts:
	drivers/staging/android/lowmemorykiller.c

Conflicts:
	drivers/staging/android/lowmemorykiller.c
set lowmem debug level to 1
staging: android: lowmemorykiller: Don't count reserved free memory

The amount of reserved memory varies between devices. Subtract it
here to reduce the amount of devices specific tuning needed for the
minfree values.

Change-Id: I466ae8b18f5972f6f6d8b5a7d8c4ae69660de53a
Signed-off-by: Arve Hjønnevåg <arve@android.com>