latona: slightly increase mpu OPP5 frequency

The device is stable at 1.15GHz and SmartReflex works fine.
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>
Input: request threaded-only IRQs with IRQF_ONESHOT

Since commit 1c6c69525b ("genirq: Reject bogus threaded irq requests")
threaded IRQs without a primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail. This patch adds the
IRQF_ONESHOT to input drivers where it is missing. Not modified by
this patch are those drivers where the requested IRQ will always be a
nested IRQ (e.g. because it's part of an MFD), since for this special
case IRQF_ONESHOT is not required to be specified when requesting the
IRQ.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Merge branch 'latona-3.0' into latona-3.0.y
Revert changes to binder and LMK

Some of those changes cause random freezes.
Revert all of them until the culprit is found.

--------
Revert "Staging: android: binder: Fix memory leak on thread/process exit"

This reverts commit e0ca91b9df9845e6e7d38c3c5bb3f6f72cb20b75.

--------
Revert "Staging: android: binder: Add some missing binder_stat_br calls"

This reverts commit 61cba7773f811199e3be78fb5bab4c9400547b56.

--------
Revert "Staging: android: binder: Fix use-after-free bug"

This reverts commit 884d25141f98d180c088e7b87d0b2d383f748e51.

--------
Revert "Staging: android: binder: Fix crashes when sharing a binder file between processes"

This reverts commit 3836d0be43b05a783f5eb6a24e98bd1a173014e4.

--------
Revert "Staging: android: binder: Don't call dump_stack in binder_vma_open"

This reverts commit e1a663d6b79031376427c9b260c33a1e41097f2d.

--------
Revert "android, lowmemorykiller: remove task handoff notifier"

This reverts commit 437f3f1934429615f911b821f2c9a15d92474610.

--------
Revert "Staging: android: lowmemorykiller.c"

This reverts commit 15b66925601063273cd707704d24f15bb6249e38.

--------
Revert "staging: android/lowmemorykiller: Do not kill kernel threads"

This reverts commit 10cfd6b4ad39ee033b49d833c0120588fe078300.

--------
Revert "staging: android/lowmemorykiller: No need for task->signal check"

This reverts commit 47584f45c130eeb7631565cac275f6446e8d08db.

--------
Revert "staging: android/lowmemorykiller: Better mm handling"

This reverts commit 0a39d1fb23e972736c1687406916abbfb0cd62ba.

--------
Revert "staging: android/lowmemorykiller: Don't grab tasklist_lock"

This reverts commit e0315527fb8011a5fb2987c537102dd956bd4600.

--------
Revert "Staging: android: fixed 80 characters warnings in lowmemorykiller.c"

This reverts commit 76bbf15c7c498e29b7bae03f40976ef9e3a3e71e.