mogami/zeus: Support proprietary chargers.

Non-standard chargers are allowed to charge up to 500mA.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
defconfigs: Disable SEMC alien charger implementation

Let's see how charger behaves with CAF alien charger code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Squashed update of kernel from 3.4.67 to 3.4.68
msm: kgsl: Avoid turning on GPU clock if already off

In adreno_idle(), check if the GPU clock is already
turned off. If so, the GPU is already idle,
so don't turn on the clocks again.

Change-Id: I27ae939253ee71830466e3117bed0230d7ff67d5
Signed-off-by: Ananta Kishore K <akollipa@codeaurora.org>
Remove sony's alien charger implementation

qcom's implementation seems to work fine, avoid adding all this code
defconfigs: Remove sony's alien charger
Squashed update of kernel from 3.4.68 to 3.4.69
Revert "ALSA: fix oops in snd_pcm_info() caused by ASoC DPCM"

This reverts commit:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=5812381adfde20cb352d3047190ab45ea5bb59f2
Squashed update of kernel from 3.4.69 to 3.4.70
SELinux: include definition of new capabilities

The kernel has added CAP_WAKE_ALARM and CAP_EPOLLWAKEUP.  We need to
define these in SELinux so they can be mediated by policy.

Change-Id: I8a3e0db15ec5f4eb05d455a57e8446a8c2b484c2
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
[sds: rename epollwakeup to block_suspend to match upstream merge]
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
msm: vidc: Check validity of userspace address

Before writing to a userspace address, verification
of the validity of user space address is required.

Change-Id: I9141e44a6c11aaf3f4d57c08bb0dd26a7b214f34
CRs-fixed: 556356
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
ALSA: pcm: check for integer overflow during multiplication

Channel info data structure is parsed from userspace and if
user does not set the no. of channels correctly, it could lead
to security vulnerability if we don't check for overflow when the
no. of channels is multiplied with pcm bit width. Add a condition
to check for overflow during multiplication.

CRs-fixed: 537818
Change-Id: Ia3c31406dd8b7627ea704c076643c0348582da28
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
base: genlock: Zero a structure before sending it to user space

In the handler for GENLOCK_IOC_EXPORT zero the entire genlock_lock
structure before passing it to the user.

CRs-fixed: 552303
Change-Id: Ic0dedbad257bf0a448d0bf67a14a3932b7925bfc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
leds: Queue screen brightness on the suspend workqueue.

Queueing screen brightness change on suspend workqueue ensures that
userspace initiated changes to screen brightness (especially when
the END key is pressed) so not get triggered while early suspend
is in progress.

CRs fixed: 265531

Change-Id: I923e5a4c9ed498336ca5c61e5b4758be3545b49b
Signed-off-by: Anurag Singh <anursing@codeaurora.org>
defconfigs: Enable conservative governor

also fix default cpu clock min speed
Squashed update of kernel from 3.4.70 to 3.4.71
Squashed update of kernel from 3.4.71 to 3.4.72
Squashed update of kernel from 3.4.72 to 3.4.73
Squashed update of kernel from 3.4.73 to 3.4.74
Revert zRAM updates from kernel 3.12

zRAM crashes all the time, let's use the 3.4 default