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>
Sat, 14 Sep 2013 07:52:38 +0000 (00:52 -0700)
commit3eb41f5ecdccb938fe8617a700d42df1c8a7d60a
tree195c040cd68e35ff1ee947618fd6c35815d11c25
parentdfa170f63c5cfbdccd91c824d00c72c4314401dd
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