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>
Revert "cpufreq: intellidemand: minor clean up and tailor for APQ8064 devices"

This reverts commit ec84b66d36d6e26654515b1d3ec29d944d24f927.
Revert "cpufreq: intellidemand: sync with Hammerhead Intellidemand 5.0"

This reverts commit 0dc33a88361ba8c2953d0be67301b8cc03f99c98.

Conflicts:
	drivers/cpufreq/cpufreq_intellidemand.c
arch: msm: intelli_plug: merge N5 faux kernel

Conflicts:
	arch/arm/mach-msm/intelli_plug.c
[media] media: Init the reserved fields of struct media_link_desc

struct media_link_desc is copy_to_user'ed as the return value of
MEDIA_IOC_ENUM_LINKS. When copying, the driver is omitting to initialise
the reserved fields.  This commit fixes that by initialising the
reserved fields to 0.

CRs-Fixed: 570757
Change-Id: I230e2666c0845cc36399518a0f2c94db664382d1
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>