Revert "cpufreq: Add a sync limit to cpu-boost"

This reverts commit f7e864c8fb0986941bdd2433fcb14efe4a2177ef.
Revert "cpufreq: Add cpu-boost driver"

This reverts commit 93263c66df8e355eb74d9631bbfe273e4932dec4.
Revert "DRIVERS: THERMAL: fix freqs for m7"

This reverts commit 2926e460ff2672fff80b5c17d565ec40a460bd39.
Revert "msm: therma: fix a derp where the device would be slammered to 729Mhz if it reached the thermal throttle threshold."

This reverts commit 23e1fbf472b7f1fe6567404f743a9ad6635bd4b3.
Revert "drivers: thermal: add more steps to prevent L1/TLB panic on weaker hardware. Before this commit it was easily reproduced by running Antutu Benchmark and it would crash on the CPU Floating point test. It won't crash anymore with the current settings due to be already throttled point when reaching that stage."

This reverts commit a1315c9f642fc36e21d602d4ca6ee654fb10f58a.
Revert "drivers: thermal: fix throttling behavior."

This reverts commit 10a0576b6e60939964ab7475a14c49f648442486.
Revert "thermal: add my thermaldriver. Has a couple bits from original msm_thermal, but its generally stripped down. Default throtling point is 70ºC."

This reverts commit 93e50778f394f9f4815305635aa8da77f3573519.
ARCH: Limit freq to 918MHz when temp reaches 55
freezer: set PF_SUSPEND_TASK flag on tasks that call freeze_processes

Calling freeze_processes sets a global flag that will cause any
process that calls try_to_freeze to enter the refrigerator.  It
skips sending a signal to the current task, but if the current
task ever hits try_to_freeze, all threads will be frozen and the
system will deadlock.

Set a new flag, PF_SUSPEND_TASK, on the task that calls
freeze_processes.  The flag notifies the freezer that the thread
is involved in suspend and should not be frozen.  Also add a
WARN_ON in thaw_processes if the caller does not have the
PF_SUSPEND_TASK flag set to catch if a different task calls
thaw_processes than the one that called freeze_processes, leaving
a task with PF_SUSPEND_TASK permanently set on it.

Threads that spawn off a task with PF_SUSPEND_TASK set (which
swsusp does) will also have PF_SUSPEND_TASK set, preventing them
from freezing while they are helping with suspend, but they need
to be dead by the time suspend is triggered, otherwise they may
run when userspace is expected to be frozen.  Add a WARN_ON in
thaw_processes if more than one thread has the PF_SUSPEND_TASK
flag set.

Reported-and-tested-by: Michael Leun <lkml20130126@newton.leun.net>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
msm: kgsl: Always Signal event time timeline for every event type

Fence sync seems to react badly when it gets a unexpected timestamp
on a timeline.  When a event expires always send the expected timestamp
even if the event expired because the context was destroyed.

Change-Id: Id1bc18220223c665012df1db21eea78af78d9288
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
msm: kgsl: Fix error returns in adreno_ringbuffer_issueibcmds

Don't try to free the link structure before it is allocated.
Return the error directly if it happens before the kzalloc()

Change-Id: I6e5bfe47a43c458f20d5799aee32c55a286ee8e3
msm: kgsl: use the same logic in adreno_idle and adreno_isidle

These two functions need to agree on the meaning of "idle",
so that calling adreno_isidle() right after an adreno_idle()
will always return true.

Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
(cherry picked from commit 5365240cf0abf2d799dd849abca0dc5b46d4b784)
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>

Change-Id: I7cddf73773186c3ec8b56c111affacac3b07fcc7
msm: kgsl: Use msecs_to_jiffies for ADRENO_IDLE_TIMEOUT

This change is about to cherrypick of missing code part
from Change-Id: Ic0dedbad33630706d909931bf616bd69399f7ff1

Change-Id: I6c9766be0651e99251e1cb280f92e06e47875b4f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>