ARM: tegra: cpufreq thermal throttling cleanups
authorTodd Poynor <toddpoynor@google.com>
Tue, 21 Dec 2010 19:12:31 +0000 (11:12 -0800)
committerTodd Poynor <toddpoynor@google.com>
Tue, 4 Jan 2011 19:39:17 +0000 (11:39 -0800)
commit85d90d7d61ca4edb12a2f03a39278893f02715c8
tree2d4d2ff714e8f7d1fa7b43c31bc11c42a711de2e
parent0792e02b8e84d8d6bbb4235bde98503626ee05a3
ARM: tegra: cpufreq thermal throttling cleanups

Various review feedback, including:

Keep a global throttling index that specifies a ceiling CPU speed, lowered by one
at each delay interval (while the temperature alarm continues to be signalled).
Avoid lowering the throttle too far based on a transitory lowering of speed
requested by the governor.

Restore governor-requested speed when throttling turned off.

Add cpufreq sysfs attribute for checking throttling state.

Make throttling workqueue high-priority.

Cosmetic changes.

Change-Id: I068bf32115927fa61282f17f4a8798f2aee0b530
Signed-off-by: Todd Poynor <toddpoynor@google.com>
arch/arm/mach-tegra/cpu-tegra.c