Revert "msm: clock-pcom: Add handoff support for pcom clocks"

This reverts commit 30ccb70f30cddb0fb4be75154948142d2184b2bd.
Revert "msm: clock: Add handoff functions for most PLL clock types"

This reverts commit 4a36a7e00d55aae65a22d19f34674f36d076d195.

Conflicts:
	arch/arm/mach-msm/clock-pll.c
Revert "msm: Remove pmem_kalloc APIs"

This reverts commit 42b01a9bf261d0b7ba33045aa44e744fe55f6904.
Revert "msm: qdsp5: Add ION framework support for 7x27A & 8x25 targets"

This reverts commit 316620fd404dbfafaf01a5762d4319631114bf9f.

Conflicts:
	arch/arm/mach-msm/qdsp5/adsp_driver.c
	arch/arm/mach-msm/qdsp5/adsp_video_verify_cmd.c
	arch/arm/mach-msm/qdsp5/adsp_videoenc_verify_cmd.c
Revert "msm: QDSP5: audio: Migrate to ION"

This reverts commit 172c98ba4e1291b9ebefcedbbdf4b070daf65721.

Conflicts:
	arch/arm/mach-msm/qdsp5/audio_aac_in.c
	arch/arm/mach-msm/qdsp5/audio_amrnb_in.c
	arch/arm/mach-msm/qdsp5/audio_evrc_in.c
	arch/arm/mach-msm/qdsp5/audio_mp3.c
	arch/arm/mach-msm/qdsp5/audio_pcm_in.c
	arch/arm/mach-msm/qdsp5/audio_qcelp_in.c
Revert "Revert "msm: QDSP5: audio: Migrate to ION""

This reverts commit a5061a5ac4c4050b59cb6c7fd10a0dd376a39d39.
Revert "Revert "Revert "msm: QDSP5: audio: Migrate to ION"""

This reverts commit 7ca6c4b564b6d3c5f2146c5e447d0b3186db5e9b.
fix compile error
remove remnant session_info stuff
Revert "android: logger: Allow a UID to read it's own log entries"

This reverts commit 1c8beb6c4e2b7382b6a79989d81e1b47b08efc62.
Revert "mmc: msm_sdcc: Advertise erase capability"

This reverts commit 2f32fa2a220beb380244e1d5e6e1b10cc3b605da.
Revert "video: msm_fb: Ensure backlight is scaled atomically"

This reverts commit 5efdbf5b5b308a18d80ff6eae6d391c3a620f0e3.

Conflicts:
	drivers/video/msm/msm_fb.c
Revert "video: msm: Add user-defined backlight scaling"

This reverts commit 3c12fb01bb6581d68f75dfd559fd92ad42837685.
Revert "msm_fb: display: Add backlight with first pan display after resume"

This reverts commit 6a75b86e9f0707f46f0fd161481da25235bd037c.

Conflicts:
	drivers/video/msm/mipi_novatek.c
	drivers/video/msm/msm_fb.c
Revert "msm: vidc: error handling for ion_map_iommu calls"

This reverts commit c4959e6600192527b10ed0542070ff445d4ac3ce.
msm: cpufreq: increase priority of thread that increases frequencies

When the cpufreq governors request for increase in frequency from kworker
threads, there is chance that the kworker thread is cpu starved due to
other high priority threads, leading to undesirable increase in frequency
ramp-up latency. Add the calling thread to SCHED_FIFO policy when
requesting for increase in frequency and restore back to original policy
after ramp-up is completed.

Change-Id: Ie4fa199b7f9087717cb94dfcc2eddea27cc0012b
Signed-off-by: Narayanan Gopalakrishnan <nargop@codeaurora.org>
msm: pm2: Restore interrupt subsystem from sleep.

Change-Id: Id5128e47e1e78688d0b608b64454555f26a65043
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: Baji Patthan <bpatth@codeaurora.org>
[ARM] msm: do not crash when subsystem not initialized

Signed-off-by: Iliyan Malchev <malchev@google.com>
[ARM] msm: do not panic on subsystem_restart errors

A misbehaving subsystem should not be able to crash the app processor.

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: clock: Fix hardware clock gating detection for mdp_axi_clk

clock-debug uses a clock flag (CLKFLAG_HWCG) to determine if a
clock is capable of hardware gating. Unfortunately, recent
changes to clock handoff cause this flag to not always be set.

Take mdp_axi_clk for example. It is a depends of mdp_clk, and so
if mdp_clk is on out of the bootloader, mdp_axi_clk is indirectly
enabled by the clk_prepare_enable() call in __handoff_clk() when
mdp_clk is enabled. We could add support for handing off depends
clocks, but we're planning on removing the depends code and there
isn't a real problem in failing to hand off branches that are
depends since they're hidden from consumers anyway.

The only problem with this scenario is that branch_handoff() is
not called and so mdp_axi_clk is not marked as supporting
hardware clock gating. The clock flag is only used to indicate
support for hardware clock gating, so let's just read the
hardware anytime a users wants to know if the clock has hardware
gating or not.

This changes the semantics of the has_hw_gating file because we
read the hardware instead of returning a cached value and the
state of the hardware changes at runtime (e.g. if the clock is
put into reset hardware gating is turned off). In practice these
clocks aren't switching in and out of hardware gating mode while
a clock test is in progress so the impact of this change is
minimal to zero.

Change-Id: I4f646b1b32b42e3ef00067b47ffb78df8fb761d5
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/clock-local.c