ARM: tegra: power Limit CPU complex speed through sysfs
authorAlex Frid <afrid@nvidia.com>
Fri, 7 Oct 2011 06:38:21 +0000 (23:38 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 07:57:53 +0000 (00:57 -0700)
commit582f026d2b0090aaa4dd9a58b85fdbecf739df3c
tree869bea1fe49ba3d0e7eea8f926f395ab28975f69
parent7fd84c44db9c0dfd1fcf30903646015e48864b59
ARM: tegra: power Limit CPU complex speed through sysfs

Added sysfs node /sys/module/cpu_tegra/parameters/cpu_user_cap to set
maximum CPU rate from user space. Unlike per-cpu frequency governor
limit (scaling_max_freq), this cap is applied directly to common CPU
complex frequency underneath per-cpu governors.

(cherry picked from commit 5fbd5b19ddb43a03391957000f23b729f394b05b)
(cherry picked from commit bf81c8efc2c98e5008527ce019669dc57718f44b)

Change-Id: Ic2f152e1fd58f2f0062489309c0cffd32a2462ae
Reviewed-on: http://git-master/r/61711
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R800c2a4d5e097bdd29fa1b0b901264a2723abff0
arch/arm/mach-tegra/cpu-tegra.c