diff options
author | Alex Frid <afrid@nvidia.com> | 2011-03-11 21:42:46 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:25 -0800 |
commit | 4d1f7336f3bcbebe1213ceb0e57743c25aa44072 (patch) | |
tree | 3526f5c2467f824b23818fa34f74b5bcfddc58c1 /arch | |
parent | 23c80ea6826ca0163fd0e294410d03461795d810 (diff) |
ARM: tegra: cpu: Add CPU ULP mode debug control
Original-Change-Id: I30e6b308e6c04e4dcb914057284a949ad255d32f
Reviewed-on: http://git-master/r/22708
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I2d221d49aa98d407a18c9d2eb0f5658f56920cbc
Rebase-Id: R84fbe564a1624e2261b4b0623a5fa9d810c1d956
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra3.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra3.c b/arch/arm/mach-tegra/cpu-tegra3.c index 32a9744c10bb..b7c6e9726e5c 100644 --- a/arch/arm/mach-tegra/cpu-tegra3.c +++ b/arch/arm/mach-tegra/cpu-tegra3.c @@ -45,6 +45,9 @@ static DEFINE_MUTEX(tegra_hp_lock); static struct workqueue_struct *hotplug_wq; static struct delayed_work hotplug_work; +static bool no_lp; +module_param(no_lp, bool, 0644); + static unsigned long up2gn_delay; static unsigned long up2g0_delay; static unsigned long down_delay; @@ -185,7 +188,7 @@ static void tegra_auto_hotplug_work_func(struct work_struct *work) queue_delayed_work( hotplug_wq, &hotplug_work, down_delay); hp_stats_update(cpu, false); - } else if (!is_lp_cluster()) { + } else if (!is_lp_cluster() && !no_lp) { tegra_cluster_control(0, TEGRA_POWER_CLUSTER_LP | TEGRA_POWER_CLUSTER_IMMEDIATE); hp_stats_update(CONFIG_NR_CPUS, true); @@ -193,7 +196,7 @@ static void tegra_auto_hotplug_work_func(struct work_struct *work) } break; case TEGRA_HP_UP: - if (is_lp_cluster()) { + if (is_lp_cluster() && !no_lp) { tegra_cluster_control(0, TEGRA_POWER_CLUSTER_G | TEGRA_POWER_CLUSTER_IMMEDIATE); hp_stats_update(CONFIG_NR_CPUS, false); |