sensorhub: update driver to 102600

Conflicts:

	firmware/ssp.fw.ihex

Conflicts:

	drivers/sensorhub/ssp_firmware.c
	drivers/sensorhub/ssp_i2c.c
	drivers/sensorhub/ssp_sensorhub.c
	drivers/sensorhub/ssp_sensorhub.h
	firmware/ssp.fw.ihex
fs-fuse: Assure that new page is not a CMA page
sensors: update device sensors

Conflicts:

	drivers/sensor/gp2a_light.c
	drivers/sensor/lsm330dlc_accel.c
zram: Consider low pages in the lowmemorykiller
rtc: Forcefully set register twice
pegasusq: Replace governor nr_running logic

Remove pegasusq's own nr_running() averaging logic and replace it with
Nvidia's avg_nr_running() in-scheduler collecting mechanism.

Compared to the old logic, the new one is able to do absolutely exact
runqueue monitoring as it is averaging deep inside the scheduler, whilst
the old logic could only do snap-shots every 10ms.

Furthermore, we're able to decrease runqueue peaks and lows by the
sliding-window averaging done by avg_nr_running(), averaging runqueues
over 134ms and retaining the precision.

We also remove a whole separate workqueue from the kernel and a lot of
overhead and code from inside the governor.

Conflicts:

	drivers/cpufreq/cpufreq_pegasusq.c
binfmt_elf.c: use get_random_int() to fix entropy depleting

Changes:
--------
v4->v3:
- s/random_stack_user()/get_atrandom_bytes()/
- Move this function to ahead of its use to avoid the predeclaration.

v3->v2:
- Tweak code comments of random_stack_user().
- Remove redundant bits mask and shift upon the random variable.

v2->v1:
- Fix random copy to check up buffer length that are not 4-byte multiples.

v3 can be found at:
http://www.spinics.net/lists/linux-fsdevel/msg59597.html
v2 can be found at:
http://www.spinics.net/lists/linux-fsdevel/msg59418.html
v1 can be found at:
http://www.spinics.net/lists/linux-fsdevel/msg59128.html

Thanks,
-Jeff

Entropy is quickly depleted under normal operations like ls(1), cat(1),
etc...  between 2.6.30 to current mainline, for instance:

$ cat /proc/sys/kernel/random/entropy_avail
3428
$ cat /proc/sys/kernel/random/entropy_avail
2911
$cat /proc/sys/kernel/random/entropy_avail
2620

We observed this problem has been occurring since 2.6.30 with
fs/binfmt_elf.c: create_elf_tables()->get_random_bytes(), introduced by
f06295b44c296c8f ("ELF: implement AT_RANDOM for glibc PRNG seeding").

/*
 * Generate 16 random bytes for userspace PRNG seeding.
 */
get_random_bytes(k_rand_bytes, sizeof(k_rand_bytes));

The patch introduces a wrapper around get_random_int() which has lower
overhead than calling get_random_bytes() directly.

With this patch applied:
$ cat /proc/sys/kernel/random/entropy_avail
2731
$ cat /proc/sys/kernel/random/entropy_avail
2802
$ cat /proc/sys/kernel/random/entropy_avail
2878

Analyzed by John Sobecki.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andreas Dilger <aedilger@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnn@arndb.de>
Cc: John Sobecki <john.sobecki@oracle.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Jakub Jelinek <jakub@redhat.com>
Cc: Ted Ts'o <tytso@mit.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Ulrich Drepper <drepper@redhat.com>
samsung-battery: Reduce battery-monitor wakelock timeouts
Revert "pegasusq: Replace governor nr_running logic"

This reverts commit 7e75dc0f053d8b726b842acce664c88d9b6b7a2a.
Revert "cma: Create a tool to create checks against cma block memory spaces"

To be replaced by Samsung's official fix.

This reverts commit b9c4dd16a2eae1ee8fb39f00b84531b61904191e.
cma: Add memspace check against registered regions

Use it against all occurences where userspace comes in direct contact
with physical memory to deny access.

This is the official fix supplied by Samsung.

Signed-off-by: Andrei F <luxneb@gmail.com>

Conflicts:

	drivers/char/mem.c
secmem: Collect secure memory spaces and deny access in mmap

Signed-off-by: Andrei F <luxneb@gmail.com>
mmc: Soft-patch MoviNAND VTU00M (16GB) eMMC failure

Signed-off-by: Andrei F <luxneb@gmail.com>
mach-midas: Add a static cma region declaration for FIMC1

The new region checking uses cma region internal structs for region
parsing, and static declarations of memory blocks lack these.

Add a dummy region with the FIMC1 parameters and register it.
Signed-off-by: Andrei F <luxneb@gmail.com>
mmc: Disregard pending irqs in sdio

Signed-off-by: Andrei F <luxneb@gmail.com>
mach-midas: Add a static cma region declaration for MFC

Samsung apparently forgot this in the update 7 sources.
Temasek defconfig - enable sysfs vsync notifications
s3cfb: Notify userspace of vsync using sysfs, make uevents optional

Change-Id: I6fe8de47961d5c0ba73eb45543a675b6fd4344a4
Revert "s3cfb: Notify userspace of vsync using sysfs, make uevents optional"

This reverts commit f70fd7bf32d2f55c46432a0662ea3fc140121d07.
Revert "Temasek defconfig - enable sysfs vsync notifications"

This reverts commit c4260857ceed66cc1849d26338026947c7e885c0.