msm: kgsl: Always resume the GPU regardless of its state

Make sure we resume the GPU regardless of its current
state. If the device is not in suspend state restart the
device and  print an error message.

Change-Id: I9e71cbe27d360dc06513c54f3a734aaea5b10d2b
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
cpufreq: interactive: fix race on cpufreq TRANSITION notifier

The cpufreq TRANSTION notifier callback does not check the
governor_enabled state on affected CPUS, which will case
kernel panic in update_load because the policy object maybe
NULL or invalid when governor_enabled is false.

Change-Id: Ie0f1718124f61e2f9b5da57abc6981ada5b83908
Signed-off-by: Lianwei Wang <a22439@motorola.com>
cpufreq: interactive: resched timer if max freq raised

When the policy max freq is raised, and before the timer is
rescheduled in idle callback, the cpu freq may stuck at a
lower freq.

The target_freq shall be updated too, else on a high load
situation, the new_freq is always equal to target_freq and
which will cause freq stuck at a lower freq too.

Reschedule the timer on gov limits callback.

Change-Id: I6c187001ab43e859731429b64f75a74eebc37a24
Signed-off-by: Lianwei Wang <a22439@motorola.com>
ancora: Don't register pmdh device
dpram: Some minor changes from ics-3.0
Squashed update of kernel from 3.4.49 to 3.4.50
set the DEFAULT_GAMMA_LEVEL from 160CD to 20CD
this fixes the high brightness for a sec when turning on the display
video: msm: lcdc_s6e63m0: Corrected an unmanaged gamma for autobrightness

Inside the "s6e63m0_set_elvss" method the management of GAMMA_20CD is missing inside the switch block:
case GAMMA_30CD ... GAMMA_100CD
should be
case GAMMA_20CD ... GAMMA_100CD

Have been corrected also some wrong comments.
input: keyboard: cypress-touchkey: Some changes and code cleanup

- Use only one pointer to cypress_touchkey_devdata, instead of three
- Register the early suspend only when needed (CONFIG_HAS_EARLYSUSPEND)
- Removed unuseful code and commented code
- Code reindented for better readability
input: keyboard: cypress-touchkey: Customizable timeout for touchkeys backlight

This commit adds a sysfs customizable timeout parameter for the touchkeys backlight.
The parameter could be found at the following path:
/sys/class/misc/notification/bl_timeout
input: keyboard: cypress-touchkey: Manage the timeout of touchkeys backlight after a touchscreen press
input: keyboard: cypress-touchkey: Customizable activation status of touchkeys backlight on touchscreen press

This commit adds a sysfs customizable status parameter to enable/disable
the touchkeys backlight on a touchscreen press.
The parameter could be found at the following path:
/sys/class/misc/notification/touchlight_enabled
power: fuelgauge_max17043: Remove trailing spaces
power: ariesve_battery: Remove trailing spaces and some code cleanup
power: ariesve_battery: Fix charging to 100%

This change should allow to fully charge the batteries with wrong charging voltage limit.

Taken from SkyHigh Kernel - Major update to V1.4a:
https://github.com/skywalker01/Samsung-Galaxy-S-Plus/commit/85b68528602e9524d0741df050b77a552c69320c
block: urgent request: remove unnecessary urgent marking

An urgent request is marked by the scheduler in rq->cmd_flags with the
REQ_URGENT flag. There is no need to add an additional marking by
the block layer.

Change-Id: I05d5e9539d2f6c1bfa80240b0671db197a5d3b3f
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>

Conflicts:
	block/test-iosched.c
block: urgent request: Update dispatch_urgent in case of requeue/reinsert

The block layer implements a mechanism for verifying that the device
driver won't be notified of an URGENT request if there is already an
URGENT request in flight. This is due to the fact that interrupting an
URGENT request isn't efficient.
This patch fixes the above described mechanism in case the URGENT request
was returned back to the block layer from some reason: by requeue or
reinsert.

CRs-fixed: 473376, 473036, 471736
Change-Id: Ie8b8208230a302d4526068531616984825f1050d
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Revert "set the DEFAULT_GAMMA_LEVEL from 160CD to 20CD"

This reverts commit 3719b150b8791fef6ca2395afe381b27db9e9f6a.
video: msm: lcdc_s6e63m0: Fixed flicker brightness when turning on the panel