lowmemorykiller: don't unregister notifier from atomic context

The lowmemorykiller registers an atomic notifier for notfication of when
the task is freed.  From this atomic notifier callback, it removes the
atomic notifier via task_free_unregister().  This is incorrect because
atomic_notifier_chain_unregister() calls syncronize_rcu(), which can
sleep, which shouldn't be done from an atomic notifier.

Fix this by registering the notifier during init, and only unregister it
if the lowmemorykiller is unloaded.

Change-Id: Ie9cf2f23d31c78e1fe1b9dd2e11af5267832ee94
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
staging: android: lowmemorykiller: Don't wait more than one second for a process to die

If a process forked and the child process was killed by the
lowmemorykiller, the lowmemory killer would be disabled until
the parent process reaped the child or it died itself.

Change-Id: I49061da80aeae94aa8a244c1cc48b80bef6dc446
Signed-off-by: Arve Hjønnevåg <arve@android.com>
staging: android: lowmemorykiller: Ignore shmem pages in page-cache

Change-Id: I68d53cb891da6e2c6ddf30c692666e5ee79b5583
Signed-off-by: Arve Hjønnevåg <arve@android.com>
staging: binder: Fix use of uninitialized variable.

Under an extremely rare condition, the variable return_error may
not be set.  This patch initializes the value to a known "bad"
value, and checks before return to ensure return_error has been
set.

Signed-off-by: Nick Kralevich <nnk@google.com>
staging: remove Greg's TODO, now obsolete.

Signed-off-by: Brian Swetland <swetland@google.com>
config: add kernel same page support

Signed-off-by: Humberto Borba <humberos@gmail.com>
arm: s5pv210: respect #ifdef properly

pmem isn't the global memory allocation

Signed-off-by: Humberto Borba <humberos@gmail.com>
arm: s5pv210: moar love to p1 7"

increase mdnie clock from 2.4GHz to 3GHz
increase lcd lvds frequency from 60 to 67.2

Signed-off-by: Humberto Borba <humberos@gmail.com>
MMC: host: add a quirk to keep the clocks on when idling

Add an extra quirk to keep the clocks running when the device is idle.

Change-Id: I620f515088385b4b031daa9051c6f1ef380ea4a6
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
MMC: S3C: Add support for extra MMC quirk

Adding support for the extra MMC quirk that leaves clocks running when the
device is idle.

Change-Id: I7c1fe3e9caa9aaa85bd81d1b9a913be52b2a9646
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
MMC:S3C: Turn interrupts on on resume when flag is set

When the appropriate flag is set, turn SD controller interrupts on on resume.

Change-Id: Icba8b2e9a209d1c39aadbc3cf361e85d2424ab5d
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>

Conflicts:
	drivers/mmc/host/sdhci-s3c.c
ARM: Samsung: Add support for extra MMC host quirk

Adding support for the extra HSMMC host quirk that leaves clocks running on
device idle.

Change-Id: I0a2564d0e564e0f3d5e5cea17dd1e000adb130af
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>

Conflicts:
	arch/arm/plat-samsung/dev-hsmmc.c
	arch/arm/plat-samsung/dev-hsmmc1.c
	arch/arm/plat-samsung/dev-hsmmc2.c
	arch/arm/plat-samsung/dev-hsmmc3.c
ARM: Samsung: Add a flag to enable MMC interrupts on resume

Add an extra flag to the SD platform data to enable MMC interrupts when the
host controller resumes.

Change-Id: I4725e5fd8408959f0284bf9eae393e9e7a61262e
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
arm: samsung: fix code style

Signed-off-by: Humberto Borba <humberos@gmail.com>