android: logger: resized to 128kb
ARM: dts: msm: i2c: change clock rates to 19.2 MHz

derived from Qualcomm Change-Id: Ifb17fb79062a390a19881d247a2ac0ca5cc55d80

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>

Conflicts:
	arch/arm/boot/dts/msm8974/msm8974-sec.dtsi
SELinux: use ARRAY_SIZE

ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
SELinux: possible NULL deref in context_struct_to_string

It's possible that the caller passed a NULL for scontext.  However if this
is a defered mapping we might still attempt to call *scontext=kstrdup().
This is bad.  Instead just return the len.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
ext4: Speedup WB_SYNC_ALL pass called from sync(2)

When doing filesystem wide sync, there's no need to force transaction
commit (or synchronously write inode buffer) separately for each inode
because ext4_sync_fs() takes care of forcing commit at the end (VFS
takes care of flushing buffer cache, respectively). Most of the time
this slowness doesn't manifest because previous WB_SYNC_NONE writeback
doesn't leave much to write but when there are processes aggressively
creating new files and several filesystems to sync, the sync slowness
can be noticeable. In the following test script sync(1) takes around 6
minutes when there are two ext4 filesystems mounted on a standard SATA
drive. After this patch sync takes a couple of seconds so we have about
two orders of magnitude improvement.

      function run_writers
      {
        for (( i = 0; i < 10; i++ )); do
          mkdir $1/dir$i
          for (( j = 0; j < 40000; j++ )); do
            dd if=/dev/zero of=$1/dir$i/$j bs=4k count=4 &>/dev/null
          done &
        done
      }

      for dir in "$@"; do
        run_writers $dir
      done

      sleep 40
      time sync

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
ASoC: wcd9320: Handle the port disconnect correctly

In irq handler driver goes through all irq register
status bits to check which interrupt has really
triggered. However hardware sets the irq status register
regardless of mask value set by the driver. This has
an un-intended consequence of stack dump in driver as
it was not expecting this interrupt.

Change-Id: I2fd9ff93134f76cd924fdab7024e712f95caf7fe
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
ASoC: wcd9xxx: Changes for High performance mode

Add changes for high performance audio playback on headset
for better audio quality during 192KHz/24bit audio playback.

CRs-Fixed: 706322
Change-Id: Ie79293f24114d5d81a610186d24b44b1550dae9c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
ASoC: wcd9xxx: Avoid micbias glitches during audio playback

During audio playback over headset, micbias output is switched
to vddio and it's parameters are programmed so that it will do
button polling with a voltage equal to vddio (1.8v). It is observed
that during this polling interval there is a drop in micbias
voltage which would cause issues with button press. Avoid this
voltage drop by disabling mbhc micbias when vddio switch is enabled.

CRs-Fixed: 705060
Change-Id: I0c2f6a0224760aef1f8e51b1ae34c77fc9863b52
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Add Badass CPU Gov
Badass: Make Percents more realistic

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Badass: Remove GPU stuff and revert previous changes

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
cpufreq: Add 3 phase tunables to badass

cpufreq: Change badass defaults in Kconfig

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
cpufreq: badass: Add Phase 2 and 3 Values

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
cpufreq: Add Lazy

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
lazy: remove suspend features

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
Lazy: 3.4.y compatibility fixups

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>

Compatibility take two

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>

Please!!!

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>
cpufreq: Introduce Uberdemand

* Ondemand CPU governor with 2nd phase tunable since I missed that feature. Cap is set at 1728 MHz which seems to do well.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
uberdemand: simplify code

* Or in otherwords overhaul the whole thing because there are lots of things I don't care for.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
cpufreq: Introduce Darkness

*But a simplified version of it compatible with the N5.  Full version was not made for this device.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
lionheart: Change to module_init

* This will help fix the ordering.  This should be present because lionheart is not always default.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
wheatley: Misc formatting fixes

* and a very small tweak.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Wheatley: Derp

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
cpufreq: Introduce Optimax

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>