cpu-boost: if the user is underclocking choose the minimum clock from input_boost_freq and policy->max for extra power savings if the underclocked freq is < input_boost_freq

Change-Id: I71494187214f39371af40cfa3938959f0c735295
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
bacon: Use old naming for LG panel

 * Bootloader is still sending the old name, revert the DT change for
   now to fix display detection on this hardware.

Change-Id: I850de726de2b96615ecb2763ec80b085a9102352
input: touchscreen: Update TP firmware to 14001220

Change-Id: If3e5cc74cb019fd4d1123db9cabba4e2e011e0c2
camera_oppo: Upstream update svn9954

 * Add sensor state procfs

Change-Id: I2c14e38002e50e495d5c30db86e767cdb6071066
msm: vidc: Send resolution along with output buffer

Send the resolution along with output buffer to the client
to avoid a race condition where resolution might be changed
multiple times in driver before client requests for updated
resolution.

Change-Id: I8ebb99e3baa04da09f153195a674babcebcfea78
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
input: touch: synaptics: Optionally reset the device when blanking display

This re-introduces e1786f2ab98c5d1062b33959ebd9523609c9468f - this
time for all find7-variants, but depending on the newly introduced
sysfs attibute "reset_on_suspend" (0/off by default).

To activate it, use:
echo 1 > /sys/class/input/inputX/reset_on_suspend

Apparently, all find7-variants still have big touchscreen problems
despite OPPO's driver updates (including svn9954), see e.g.
http://www.oppoforums.com/search/15887105/?q=touchscreen and
e.g. https://jira.cyanogenmod.org/browse/BACON-55.

This "recovery mechanism" (as RC called it), of course, does not fix
the problem, but it might be better than rebooting the phone every
time the display gets warm and unresponsive. On the downside, if it
works not just for me, we might never get a real fix.

Change-Id: Ief6214f687562746bd1b7b3f8a4b30d099a698f0
mmc: toggleable software crc

Change-Id: I79fc427c4f67de0e6a3b8ce60b4b5db0497f1351
USB: storage: ene_ub6250: fix warning for the frame size

[-Wframe-larger-than=]

Change-Id: I19f9a88cfa151e932dab30ed6dd34f452340cb5b
tmpfs: fix mempolicy object leaks

This patch fixes several mempolicy leaks in the tmpfs mount logic.
These leaks are slow - on the order of one object leaked per mount
attempt.

Leak 1 (umount doesn't free mpol allocated in mount):
    while true; do
        mount -t tmpfs -o mpol=interleave,size=100M nodev /mnt
        umount /mnt
    done

Leak 2 (errors parsing remount options will leak mpol):
    mount -t tmpfs -o size=100M nodev /mnt
    while true; do
        mount -o remount,mpol=interleave,size=x /mnt 2> /dev/null
    done
    umount /mnt

Leak 3 (multiple mpol per mount leak mpol):
    while true; do
        mount -t tmpfs -o mpol=interleave,mpol=interleave,size=100M nodev /mnt
        umount /mnt
    done

This patch fixes all of the above.  I could have broken the patch into
three pieces but is seemed easier to review as one.

Change-Id: I6e6fce82f03203a168f32695f09f413bb2095cd4
Signed-off-by: Greg Thelen <gthelen@google.com>
random: increase read and write entropy levels

Change-Id: Ib7ce6560f9926f366c661a3d41d5b7b0633db7b3
msm-of: Remove init macros to avoid "section mismatch" error during compilation

Change-Id: Ibcb0ffa9e11a200d866f11bf151a7705b2f3b343
Disable -fconserve-stack on ARM v2

There are reports that -fconserve-stack misaligns variables on the stack.
Disable it for ARM to work around this gcc bug.

v2: Move top level flags definition up

Change-Id: I4a3b058b7a50bc513580e695995f77cd721e1fb9
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
ARM: 8165/1: alignment: don't break misaligned NEON load/store

The alignment fixup incorrectly decodes faulting ARM VLDn/VSTn
instructions (where the optional alignment hint is given but incorrect)
as LDR/STR, leading to register corruption. Detect these and correctly
treat them as unhandled, so that userspace gets the fault it expects.

Change-Id: I0848bac77eee63531cc5300fda38fbb9390e3193
Reported-by: Simon Hosie <simon.hosie@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
ARM: smp: Wait just 1 second for other CPU to halt

Currently, the busyloop waiting for a 2nd CPU to stop takes about 4
seconds.  Adjust for the overhead of the loop by looping every 1ms
instead of 1us.

Change-Id: Id9f158c94ff2712225e086b6c64cc816ddce7bee
Signed-off-by: Chris Fries <C.Fries@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/537864
SLT-Approved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Check Patch <CHEKPACH@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Igor Kovalenko <cik009@motorola.com>
Reviewed-by: Russell Knize <rknize2@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Merge remote-tracking branch 'nameless/android-4.4' into bk01

Conflicts:
	drivers/char/random.c
	drivers/mmc/core/core.c