change anykernel dir
mm: hugetlb: fix copy_hugetlb_page_range()

commit 0253d634e0803a8376a0d88efee0bf523d8673f9 upstream.

Commit 4a705fef9862 ("hugetlb: fix copy_hugetlb_page_range() to handle
migration/hwpoisoned entry") changed the order of
huge_ptep_set_wrprotect() and huge_ptep_get(), which leads to breakage
in some workloads like hugepage-backed heap allocation via libhugetlbfs.
This patch fixes it.

The test program for the problem is shown below:

  $ cat heap.c
  #include <unistd.h>
  #include <stdlib.h>
  #include <string.h>

  #define HPS 0x200000

  int main() {
  	int i;
  	char *p = malloc(HPS);
  	memset(p, '1', HPS);
  	for (i = 0; i < 5; i++) {
  		if (!fork()) {
  			memset(p, '2', HPS);
  			p = malloc(HPS);
  			memset(p, '3', HPS);
  			free(p);
  			return 0;
  		}
  	}
  	sleep(1);
  	free(p);
  	return 0;
  }

  $ export HUGETLB_MORECORE=yes ; export HUGETLB_NO_PREFAULT= ; hugectl --heap ./heap

Fixes 4a705fef9862 ("hugetlb: fix copy_hugetlb_page_range() to handle
migration/hwpoisoned entry"), so is applicable to -stable kernels which
include it.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reported-by: Guillaume Morin <guillaume@morinfr.org>
Suggested-by: Guillaume Morin <guillaume@morinfr.org>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Revert "arm: autosmp: remove get/put_online_cpus"

This reverts commit c4fef841419109dab978b12e93b7087872879099.
arm: autosmp: use __read_mostly with enabled
Thanks to @moddingg33k
Also clean up trailing spaces
intelliactive: rework input register/unregister

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: expose direct register manipulations to userspace

bump driver version to 3.3

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: Misc clean up for newer WCD9xxx SOCs

Bump driver version to 3.4

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: let register lock be dependent on different hw revisions

Signed-off-by: Paul Reioux <reioux@gmail.com>
Sound Control: separate locking mechanism for recording and playback

with newer hardware revisions coming from Qualcomm, single register lock
control isn't sufficient to cover both playback and recording usage scenarios

bump to version 3.5

Signed-off-by: Paul Reioux <reioux@gmail.com>
update version to 36u
squashed commits for intelli_plug hotplug
mm/ksm: engage deferred timer by default

Signed-off-by: Paul Reioux <reioux@gmail.com>
include/linux/sunrpc/cache.h: GCC 4.9.x warning fix up

Signed-off-by: Paul Reioux <reioux@gmail.com>
net/sunrpc/svcauth_unix.c: GCC 4.9.x warning fix up

Signed-off-by: Paul Reioux <reioux@gmail.com>
update version to 37u
lm3530: Add a toggle for the CABC PWM
mako: backlight: apply customized backlight LUT for power saving

changing backlight curve from linear to exponential.

Change-Id: Id01aa028b9f20183f4ebd82cac62305b3d40edc3

Conflicts:
	arch/arm/mach-msm/lge/mako/board-mako-display.c
used lower brightness on autobrightness setting
video: lm3530_bl: Introduce new tunables to control LED driver

- min_br: sets the mininum brightness level (2-114)
- max_br: sets the maximum brightness level (2-114)
- br_mode: sets the linear (default 1) or exponential (0) brightness
mapping mode.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
update to r4 to add brightness settings