drivers: add selective loading of NFC drivers support

* Subjectively load either bcm2079x-i2c or pn547 drivers based on model

With this change one kernel can be used for all devices

Change-Id: I23d789f61e2aae08afaa384094a132f8728414a4
Add frandom

Signed-off-by: dragon <dragon7780@hotmail.nl>
Fixes for building kernel with gcc 4.9.x

Signed-off-by: dragon <dragon7780@hotmail.nl>
Initial commits Fusion kernel

This is based on ktoonsez kernel (Thnx ktoonsez)

Signed-off-by: dragon <dragon7780@hotmail.nl>
Merge tag 'AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.087' into caf
AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.087 based on quic/aosp/kk_3.5_rb1

Signed-off-by: dragon <dragon7780@hotmail.nl>
Merge tag 'AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.090' into caf
AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.090 based on quic/aosp/kk_3.5_rb1

Signed-off-by: dragon <dragon7780@hotmail.nl>
Merge tag 'AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.092' into caf
AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.092 based on quic/aosp/kk_3.5_rb1

Signed-off-by: dragon <dragon7780@hotmail.nl>
Revert "Merge tag 'AU_LINUX_ANDROID_KK_3.5_RB1.04.04.02.006.087' into caf"

This reverts commit b99fe14a87dd5af476312017ea6aa525311e1728.
Add /dev/frandom support

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
def: Add frandom

Signed-off-by: dragon <dragon7780@hotmail.nl>
msm8974: watchdog: Increase pet time by 10 sec to avoid false bites

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
staging: android: logger: Improve logging

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
CHROMIUM: clocksource: allow clocksources to be selected earlier during boot

Global and per-CPU timers ought to be initialized once SMP initialization
is complete.  Although the clocksources associated with these timers may
not be registered until later in the boot process, they should be ready
to go once registered.  We'd like to stop using the super low-resolution
boot clocksource (jiffies) as soon as possible since devices may rely on
accurate timekeeping while being brought up during boot, so move
clocksource_done_booting() to arch_initcall time so that we can switch
to a higher-resolution clocksrouce earlier in the boot process.

TEST=Pit and Lumpy both still boot reliably.  Boot time on Pit improves
considerably:
Before: [    3.032967] VFS: Mounted root ...
After:  [    1.855936] VFS: Mounted root ...
Lumpy boot time improves very slightly:
Before: [    1.786347] VFS: Mounted root ...
After:  [    1.754297] VFS: Mounted root ...

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
lib/scatterlist: error handling in __sg_alloc_table()

I was reviewing code which I suspected might allocate a zero size SG
table.  That will cause memory corruption.  Also we can't return before
doing the memset or we could end up using uninitialized memory in the
cleanup path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
kernel/fork.c: make dup_mm() static

dup_mm() is used only in kernel/fork.c

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
mm/ksm.c: use new hashtable implementation

Switch ksm to use the new hashtable implementation.  This reduces the
amount of generic unrelated code in the ksm module.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
ksm: Provide support to use deferred timers for scanner thread

KSM thread to scan pages is getting schedule on definite timeout.
That wakes up CPU from idle state and hence may affect the power
consumption. Provide an optional support to use deferred timer
which suites low-power use-cases.

To enable deferred timers,
$ echo 1 > /sys/kernel/mm/ksm/deferred_timer

Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
msm: watchdog-v2: use request_mem_region instead of request_region

Use request_mem_region api to request for allocating io resource in place
of request_region since the resource is actually not an io port resource
but io memory.

Signed-off-by: Aparna Das <adas@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
net/sunrpc: fix 'subbuf.[...]' may be used uninitialized in this function

Signed-off-by: Dennis Rassmann <showp1984@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>
ARM: make kernel oops easier to read

We don't need the offset for the first function name in each backtrace
entry; this needlessly consumes screen space.  This is virtually always
the first or second instruction in the called function.

Also, recognise stmfd instructions which include r10 as a valid stack
saving instruction, and when dumping the registers, dump six registers
per line rather than five, and fix the wrapping.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: TomorrowLandAce <joaolrpaulo@gmail.com>