ASoC: pcm: Use the power efficient workqueue for delayed powerdown

Adapted for 3.4 from lsk-v3.10

There is no need to use a normal per-CPU workqueue for delayed power downs
as they're not timing or performance critical and waking up a core for them
would defeat some of the point.

Signed-off-by: Mark Brown <broonie@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
ARM: kernel: update __cpu_disable to use cache LoUIS maintenance API

When a CPU is hotplugged out caches that reside in its power domain
lose their contents and so must be cleaned to the next memory level.

Currently, __cpu_disable calls flush_cache_all() that for new generation
processor like A15/A7 ends up cleaning and invalidating all cache levels
up to Level of Coherency, which includes the unified L2.

This ends up being a waste of cycles since the L2 cache contents are not
lost on power down.

This patch updates __cpu_disable to use the new LoUIS API cache operations.

Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>

Conflicts:
	arch/arm/kernel/smp.c
PM: enable all sleep states.

https://github.com/poondog/kangaroo-m7-mkIV/blob/master/arch/arm/mach-msm/pm-data.c
mm: ksm: Optimize default

https://github.com/Linearboost/Linear-N5/commit/d65224192ae1e13f56f69e48f39f28c839f5a583
dts: introduce 268MHz clock
 arch/arm/Kconfig: enable unaligned capability for ARM

Signed-off-by: GuneetAtwal <harjinder767@gmail.com>
  NOATIME and NODIRATIME by default

Signed-off-by: GuneetAtwal <harjinder767@gmail.com>
  CPU unaligned access path[francofransico]
 Optimize apply_slack() for size and speed
http://lkml.indiana.edu/…

hypermail/linux/kernel/1201.3/03172.html
ARM: 7583/1: decompressor: Enable unaligned memory access for v6 and above

Modern GCC can generate code which makes use of the CPU's native
unaligned memory access capabilities.  This is useful for the C
decompressor implementations used for unpacking compressed kernels.

This patch disables alignment faults and enables the v6 unaligned
access model on CPUs which support these features (i.e., v6 and
later), allowing full unaligned access support for C code in the
decompressor.

The decompressor C code must not be built to assume that unaligned
access works if support for v5 or older platforms is included in
the kernel.

For correct code generation, C decompressor code must always use
the get_unaligned and put_unaligned accessors when dealing with
unaligned pointers, regardless of this patch.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
 Blaze Tweaks

Signed-off-by: GuneetAtwal <harjinder767@gmail.com>
msm8974: Adapt memutils optimizations from msm8960pro (part 2) 1
msm8974: Adapt memutils optimizations from msm8960pro (part 2) 2
msm8974: Adapt memutils optimizations from msm8960pro (part 2) 3
msm8974: Adapt memutils optimizations from msm8960pro (part 2) 4
ARM: mm: enable non-cacheable streaming enhancement

This is cortex-a15 specific

bug 1178938

Change-Id: Id695d89dbe1411d277f2c1296c74586ca9c1584e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/164168
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
ARM: mm: Enable NCSE feature for A15 only

Change-Id: If966ee69f1d5e4314f79685238ecff3c44eadac0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/167879
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
ASoC: wcd9xxx: [HACK] Prevent headphone&speaker from clipping

* Buck mode is set to 2V when HPH+Spk combo device has been selected.

Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>

Change-Id: Id9c60be9298cc3eae2fb178900fc95582b00f716
Revert "Squash 'enhance power efficiency' patches"

This reverts commit a122b00d76e89246f1936f97c60c15bb072361bb.
Revert "assorted tweaks"

This reverts commit 086dbe2f542db6059526ffba1fdb1090f72d823d.