intelli/msm_thermal: initial coding for Qualcomm Snapdragon 800 devices

an intelligent MSM thermal throttling kernel driver designed to replace the
closed sourced thermald(aemon) from Qualcomm.

The current driver can throttle the SOC via core frequency scaling or via
core hotplug with user configurable sysfs entries to adjust the throttling
temperature thresholds for each.

Derived from Qualcomm's Open source repo.

Signed-off-by: Paul Reioux <reioux@gmail.com>
Revert "intelli/msm_thermal: initial coding for Qualcomm Snapdragon 800 devices"

This reverts commit acbc4b47258fce9abd2762a62cc203db23ddd425.
Revert "synaptics_3k: Add lid events to support the dot case cover"
hall_sensor: add a uevent switch for the cover

* We'll use this for the custom DotView case app
* Also make sure to set the initial value after registering the switch

Change-Id: Ib6668f6628b82949a57a25487bfcf261d35f5d07
ksm: check and skip page, if it is already scanned

From: Pradeep Sawlani <sawlani@amazon.com>

On system like Android where most of the process are forked
from parent w/o execve, KSM can scan same page multiple times
in one scan cycle. There is no advantage in scanning same page
multiple times for merging. During testing with Android, it was
observed around 60% pages are skipped for each scan cycle.

Change-Id: I0cf01802f0b4d61fcab92558beb9e1c660dc9a77
Link: http://lkml.kernel.org/r/CAMrOTPgBtANS_ryRjan0-dTL97U7eRvtf3dCsss=Kn+Uk89fuA@mail.gmail.com
Signed-off-by: Pradeep Sawlani <sawlani@amazon.com>

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:

	include/linux/page-flags.h
	mm/Kconfig
	mm/ksm.c
Merge remote-tracking branch 'upstream/kitkat' into kitkat