staging: android: logger: Finish documentation of two structs

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	drivers/staging/android/logger.c

Signed-off-by: Aldrin <skrillization@gmail.com>
staging: android: logger: Fix some sparse and whitespace issues

Fix a few sparse warnings, and improve whitespace.

Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
staging: android: logger: enforce GID and CAP check on log flush

Restrict log flushing to those in the logs group, or
anyone with CAP_SYSLOG.

Cc: Android Kernel Team <kernel-team@android.com>
Cc: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: Charndeep Grewal <csgrewa@tycho.ncsc.mil>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
Staging: Android: logger: module_exit implementation

This patch creates the module_exit for the android logger
so that it can be loaded and unloaded as a module.

The android logger is already declared as a tristate in the
Kconfig but the module_exit function was missing.

device_initcall works also with modprobe since include/linux/init.h:

 #define module_init(x)  __initcall(x);
 ...
 #define __initcall(fn) device_initcall(fn)

Signed-off-by: Luca Clementi <luca.clementi@gmail.com>
Cc: Brian Swetland <swetland@google.com>
Cc: Robert Love <rlove@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
staging: android: logger: Correct write offset reset on error

In the situation that a writer fails to copy data from userspace it will reset
the write offset to the value it had before it went to sleep. This discarding
any messages written while aquiring the mutex.

Therefore the reset offset needs to be retrieved after acquiring the mutex.

Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	drivers/staging/android/logger.c

Signed-off-by: Aldrin <skrillization@gmail.com>
Disabled Logger
msm: rpm-smd: Configure WQ for higer priority

When the workqueue runs at a lower priority, it gets starved by higher
priority threads. Bump the WQ priority to high to ensure rpm smd work
queue gets a fair chance

Change-Id: I06b864611cf45afe6931d6030327806032894663
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
(cherry picked from commit e0eccf8f6dece61cdb639c4b43374c34c3acf3ea)
Signed-off-by: Aldrin <skrillization@gmail.com>
msm: hotplug: lock 500, boost 2500, lane 400 Thanks@anarkia1976.

Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	arch/arm/mach-msm/msm_hotplug.c
gpu: ion: Sync CMA caching logic with carveout heap.

Change-Id: Id759d442a45a54ae6b3410f01a208728cb040a52
Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	drivers/gpu/ion/ion_cma_heap.c

Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	arch/arm/configs/hells_defconfig
tick: Dynamically set broadcast irq affinity

When a cpu goes to a deep idle state where its local timer is
shutdown, it notifies the time frame work to use the broadcast timer
instead.  Unfortunately, the broadcast device could wake up any CPU,
including an idle one which is not concerned by the wake up at all. So
in the worst case an idle CPU will wake up to send an IPI to the CPU
whose timer expired.

Provide an opt-in feature CLOCK_EVT_FEAT_DYNIRQ which tells the core
that is should set the interrupt affinity of the broadcast interrupt
to the cpu which has the earliest expiry time. This avoids unnecessary
spurious wakeups and IPIs.

[ tglx: Adopted to cpumask rework, silenced an uninitialized warning,
  massaged changelog ]

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: viresh.kumar@linaro.org
Cc: jacob.jun.pan@linux.intel.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: santosh.shilimkar@ti.com
Cc: linaro-kernel@lists.linaro.org
Cc: patches@linaro.org
Cc: rickard.andersson@stericsson.com
Cc: vincent.guittot@linaro.org
Cc: linus.walleij@stericsson.com
Cc: john.stultz@linaro.org
Link: http://lkml.kernel.org/r/1362219013-18173-3-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Change-Id: I6a880a39dd595526b80a6d72b88be74163513da9
Signed-off-by: Karthik Parsha <kparsha@codeaurora.org>
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
cpufreq: Break out early if freq equals to target_freq

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
mm: vmscan: Decreased Swappiness

Signed-off-by: Aldrin <skrillization@gmail.com>
block: disable add_random for more performance on SSD's

Signed-off-by: Aldrin <skrillization@gmail.com>
arm: mach-msm: decouple QCACHE from MSM board

Signed-off-by: Aldrin <skrillization@gmail.com>
defconfig:Disable QUEUE_STATS

Signed-off-by: Aldrin <skrillization@gmail.com>
cpufreq: smartmax: added new governor based on ondemand and smartass2

Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	arch/arm/configs/hells_defconfig
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
	include/linux/cpufreq.h

Signed-off-by: Aldrin <skrillization@gmail.com>

Conflicts:
	arch/arm/configs/hells_defconfig
	drivers/cpufreq/Kconfig
	drivers/cpufreq/Makefile
	include/linux/cpufreq.h
cpufreq: smartmax: merged with latest version - thanks @maxwen

Signed-off-by: Aldrin <skrillization@gmail.com>
PM / cpufreq: Initialise the cpu field during conservative governor start

This change initialises the cpu id field of cs_cpu_dbs_info structure in
conservative governor and keep this consistent with other governors.
Similar initialisation is present in ondemand governor.

Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Aldrin <skrillization@gmail.com>
msm_fb: Do not check for BLT when it is already enabled.

On some cases where BLT is enabled by default & the source dimensions require
BLT mode, it returns error.

Check if BLT is disabled before calculating if it should be enabled.

Change-Id: I59f575f353d89cbe5ed3154f4c021fdcc1eff722
Signed-off-by: Aldrin <skrillization@gmail.com>
msm_fb: Skip writeback buffer init

Cases like "adb shell stop" & "adb shell start" cause the buffers to be
reinitialized, while the buffer has been already allocated.

Solves multiple issues, notably display crash no longer produces blank display.

Change-Id: I7097bc9af90a6ba2f020f911869282c39e9f9a3a
Signed-off-by: Aldrin <skrillization@gmail.com>