rebase // bringup

Change-Id: I534f281dae7fc84488d78b6091ab6a8be0ca11e3
Revert "msm: acpuclock-krait: Disable vdd core boost"

This reverts commit aade74501be727bc9ccc6390a9cb3f0d842aa7ef.

Change-Id: Ied085672208da3d6c1fbbf18e5c1050cc7f1cc2a
Revert "msm: krait: add CPU Voltage control."

This reverts commit 86516ee2fe35ea60164a89a93f5721550c2b21a9.

Change-Id: Ia72c575f01dd95335a4fe96442171e3166c6f7d7
add support for d803

Change-Id: Ib2f60b8299ebe25d9461117ee70c31b184ccbf4a
always use short version for kernel formatting

Change-Id: Ib57844dc0ef502d773ad8948639b749886647f22
fix mkcompile_h

Change-Id: Ibe0c375b066e8c42425fbb475a282f1c6cdef0b8
Powersuspend [SQUASHED]

kernel/power/powersuspend: default to userspace for now

Signed-off-by: Paul Reioux <reioux@gmail.com>
kernel/power/powersuspend: add back userpace control w/ default kernel control

make kernel / userspace mode switchable

Signed-off-by: Paul Reioux <reioux@gmail.com>
kernel/power/powersuspend: remove userspace dependency from powersuspend

make powersuspend not depend on a userspace initiator anymore, but use a hook
in autosleep instead.

Signed-off-by: Paul Reioux <reioux@gmail.com>
powersuspend: new PM kernel driver for Android w/o early_suspend

Android early_suspend/late_resume PM kernel driver framework has been
deprecated by Google. This new powersuspend PM kernel driver is a replacement
for it and existing early_suspend drivers can be easily adapted to use this
new replacement driver

Signed-off-by: Paul Reioux <reioux@gmail.com>

powersuspend: fix logci derps :p

Signed-off-by: Paul Reioux <reioux@gmail.com>

Change-Id: I267e55380ebb25f00393c1e36780fc508ae35742
camera: flash: Update flash firing power to ~1240mA

Single flash can go up to 1000mA; split out to use flash0 &
flash1 to increase flash firing power beyond 1000mA

Signed-off-by: Ajay Dudani <adudani@codeaurora.org>

Change-Id: Ic178aa2f22df03dadb1d02fe59aa65ea83c3e630
Remove fsync [SQUASHED]

Revert "fs: sync: add missing return if fsync is disabled from userspace."

This reverts commit 1be7d8a4ff8e5ca3a696ef25aff81512a9018e2b.

Revert "fs: sync: enable fsync by default."

This reverts commit 39e8c0f0a37494c980b2542056c1bc11b5a2ecf6.

Change-Id: I36f8ecbcd4599306dc916685e5ecea1885694dfc

Revert "Added fsync on/off support."

This reverts commit 080cd37665332f787a1bc946b8af1e3408e22bb4.

Change-Id: Ia4f3083efb5bfa441d04f371b800a7c03052a823
Asynchronous Fsync: Initial extraction of Async Fsync from HTC

Signed-off-by: Paul Reioux <reioux@gmail.com>
Change-Id: Iaaf157cf813bbce499638703e4e6a98f26b968b0
Add /dev/frandom

Change-Id: I19fdb9b47cf618648b9e5c7446adedbffce13288
lib/memcopy: use glibc version

the kernel's memcpy and memmove is very inefficient. But the glibc version is
quite fast, in some cases it is 10 times faster than the kernel version. So I
introduce some memory copy macros and functions of the glibc to improve the
kernel version's performance.

The strategy of the memory functions is:
1. Copy bytes until the destination pointer is aligned.
2. Copy words in unrolled loops.  If the source and destination are not
   aligned in the same way, use word memory operations, but shift and merge
   two read words before writing.
3. Copy the few remaining bytes.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
Change-Id: Id58b544258c315076eb8b9b5f6f7376f4e7385c3
lib/string: use glibc version

the performance of memcpy and memmove of the general version is very
inefficient, this patch improved them.

Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
Change-Id: I8123b2fee098363644f885338a75d61718b52610
audit: kiss goodbye you stupid piece of crap logging messages.

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Change-Id: I5971fa454bb6373264dbb1ed4682cfe9ce01ed36
msm8974: Asynchronous Fsync in defconfigs

Change-Id: Ie42d73b16f9bc16d0ca6b69d888f44e7c78ca370
exFAT support

Change-Id: I1049a14bf6599249be89ba9db8ab353c658b73e2
Signed-off-by: flar2 <asegaert@gmail.com>
kernel: Allow exfat module load without hassle

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I18278325edefae15c298f6bfc4ec60b35f382292
ARM: smp: fix incorrect per-cpu definition of regs_before_stop

The commit efd002896a3636a4d1606ac0630aaafbbfdea9aa introduced changes
to store CPU registers for all CPUs that handle IPI_CPU_STOP. The
structure to save the registers was intended to be a per-cpu variable.
However, the patch did not allocate a per-cpu structure and instead only
ended up providing a compiler per-cpu directive. Fix this bug by actually
defining a static per-cpu variable.

Change-Id: Ifd192223c135025897e10312f61b108757575068
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
ARM: Flush the caches for non panicking CPUs in case of a kernel panic

In case of a kernel panic, only the panicking CPU does an entire
cache flush. This means that certain dirty cache lines in the L1
caches of the other CPUs may never get flushed. This gives us
improper RAM dumps. Add cache flushing for all the online CPUs.
The outer domain is not flushed since it is already being done by
the panicking CPU.

Change-Id: Ibf844ecf6b4dbc3c623789f72a26936aeb4a7306
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
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>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>