ksm: check and skip page, if it is already scanned

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
intelli-thermal: use its own dedicated workqueue

this should reduce the load on the shared global workqueue for other
processes and also give its own unique variable name for cpu limit

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: switch to use dedicated high priority workqueue

from the shared global workqueue.  This should prevent hang ups while the
global workqueue is busy and cleaned up some logic issues.

give input boost its own workqueue

bump to version 2.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq_limit: adapted for use as built-in kernel option

set default stock frequency and remove unnecessary debug messages

bump version to 1.2

Signed-off-by: Paul Reioux <reioux@gmail.com>
CPU Overclock: initial Overclock for Oppo X909

Signed-off-by: Paul Reioux <reioux@gmail.com>
msm_turbo: initial adaptation for Oppo X909

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq: enforce cpu limit at all time

Signed-off-by: Paul Reioux <reioux@gmail.com>
cpufreq_limit: adapt for S4 Pro

Signed-off-by: Paul Reioux <reioux@gmail.com>
CPU Overclocking: Initial N1 adaptation

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

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

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelli_plug: oppo touch adaptation

Signed-off-by: Paul Reioux <reioux@gmail.com>
intelliactive: oppo touch adaptation

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