Revert "cypress-touchkey: remove backlight timeout feature"

This reverts commit 57fa7640c1726f2846d609495ed5130ed5032d11.

(cherry picked from commit 1d5be179d2725c1b284422a069aec38de671957e)
temasek defconfig - debranding

(cherry picked from commit 38e3919d0c0a9b54b150cb37d73b07d7309a4167)
cypress-touchkey : add sysfs interface to enable/disable lighting hardwarekey backlight on screen touch (Yank555.lu)

(cherry picked from commit 514868168e45c4674ab821b24125f770af0b85ab)
cypress-touchkey : add sysfs interface to enable/disable lighting hardwarekey backlight on screen touch (Yank555.lu)

- prevent h/w keys to light up on late_resume as well if disabled

(cherry picked from commit 0a675c5b5065a72f5abeb30ab90597e2adb31d09)
Revert "cypress: report led status via sysfs"

This reverts commit 186412c9d4ac2be1c6cba7470b78355a7adb9ce6.

(cherry picked from commit 4155088163e4305436aaf1fcc25c78f371151dc2)
Revert "isa1200: move sysfs node for pwm level"

This reverts commit c70f251e34d3178c68bf3c88e3d620d3917d331d.

(cherry picked from commit b47845f75c4619885e3490919f2f3b14ed41247b)
Revert "smdk4412: max77693_haptic: move sysfs node"

This reverts commit 33ef6f8cf6b8105c016aacf0a1e3cde1d238a431.

(cherry picked from commit 88b37edf73e8ab96b6a246b263f86962cee027f8)
Revert "max8997: move sysfs node for pwm level"

This reverts commit f98b67c6e31214dd28f32239e1df4d96a5b6e94a.

(cherry picked from commit 30be1654cec013c1422b51e2cf7089d1c5799ccb)
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>

Conflicts:
	mm/page-writeback.c

+ need testing ...

boype: writeback value changed to my previous setting.

Conflicts:

	mm/page-writeback.c

(cherry picked from commit b0043c2bf9fd87daea3ab4b7411e004c5dc157e3)
dirty writeback/expire interval tweaks
...for less lag when screen is on and less wakeups when screen is off.

(cherry picked from commit e4acdd9ad9ac7bd8a9dd6be1d4ceff2602ef03d0)
tweak dirty writeback

Conflicts:
	mm/page-writeback.c

Conflicts:

	mm/page-writeback.c

(cherry picked from commit 7ce493c09ea0c8e0666292cb427e1ad854838618)
page-writeback.c: subtract min_free_kbytes from dirtyable memory

When calculating amount of dirtyable memory, min_free_kbytes should be
subtracted because it is not intended for dirty pages.

Addresses http://bugs.debian.org/695182

[akpm@linux-foundation.org: fix up min_free_kbytes extern declarations]
[akpm@linux-foundation.org: fix min() warning]
Signed-off-by: Paul Szabo <psz@maths.usyd.edu.au>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit 58f679c0d3e66324297d41ca2609f1186d7e0c50)
different dirty ratios behavior for screen-on / screen-off
smoothness for screen-on, relaxed values for screen-off

(cherry picked from commit a2381eb8d0dcc4bc170cc68dc2289a84f6366bce)
mm/page-writeback.c: less dirty memory with screen on

(cherry picked from commit 008a6079c1367ebcd2ab73b4e5e02052f45ae3f0)
mm/page-writeback.c: adjust dirty writeback for previously introduced lower vmalloc

Ever since vmalloc=182M, all available RAM is low memory. By leaving the
dirty ratios unchanged, this resulted in a massive increase in dirtyable
memory. The new values adjust the ratios to achieve roughly the same amount of
dirtyable memory in megabytes as before.

(cherry picked from commit 4d1d8e44654d11ea789d8bd61948daac7da430ba)
fs/dcache.c: adaptive vfs_cache_pressure on suspend / resume

low vfs_cache pressure values save battery while idle, while
a low value also causes stutter with longer up times.

(cherry picked from commit 68b3b07874718b2c5fe3551191cc9057c6ba601a)
Some changes

(cherry picked from commit e54b50c832f7cdb35202d0580d5452972bf856b4)
fs/dache.c / mm/page-writeback.c: allow modification of dirty_-values and cache_pressure despite the dynamic suspend/resume values

Conflicts:
	fs/dcache.c
	mm/page-writeback.c

(cherry picked from commit a2a3292537f8934069f0cbd9c27d790d4a5bb6f5)
Copy la Pasta error

(cherry picked from commit 4a00de7e14d41a0236bc42afd5a86093b71ef030)
Fix touch wake

(cherry picked from commit 2c0e180be393ca178bd930964d2e3eba611b37c4)