ARM: tegra: Add auto-hotplug support for Tegra3
authorAlex Frid <afrid@nvidia.com>
Sat, 5 Feb 2011 09:11:13 +0000 (01:11 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:42:20 +0000 (21:42 -0800)
commitefe7de861db97bea6a3964e7c7f4d0b13c07d1c9
treee68181e8ba7702e47bd96a6b692c6198afa72a04
parentc0f1802a8e2b91a5185c10bb0bf62a14154456a0
ARM: tegra: Add auto-hotplug support for Tegra3

Initial implementation of Tegra3 quad core CPU management. Add closed
control loop on top of cpufreq DFS. Target frequency range is bounded
by Fmax(Vnominal) for low power cluster - currently set to 456MHz, and
Fmax(Vminimum) for high power cluster - currently set to 356MHz.

When CPU frequency is scaled below the target range, slave high power
CPUs are gradually brought down and eventually CPU is switched to the
low power cluster.

When CPU frequency is scaled above the target range, CPU is switched
to the high power cluster and slave high power CPUs are gradually
brought up.

The auto hotplug support is disabled on boot. It can be explicitly
enabled via sysfs interface.

Original-Change-Id: Ie0e5cf1f334d9c53932db05950cfcf5addd271d7
Reviewed-on: http://git-master/r/18500
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I86152069aa2bed73e0148a4bcab897811e1a5827

Rebase-Id: R9cf5f5f8868c659db526cb49ddf276a79d93ef1a
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/cpu-tegra.c
arch/arm/mach-tegra/cpu-tegra3.c [new file with mode: 0644]
arch/arm/mach-tegra/pm.h
arch/arm/mach-tegra/sysfs-cluster.c