diff options
author | Alex Frid <afrid@nvidia.com> | 2011-03-11 21:42:46 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:53:46 -0700 |
commit | 5b948c30862e35cea291bb1c01ead66e2487c618 (patch) | |
tree | 414754674c6b1f2940c3f5cffe9a5c1ac96259d2 /arch/arm/mach-tegra/cpu-tegra3.c | |
parent | 38dad3ae5934e716a9f96a6675d625f249af5b8f (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>
Change-Id: I2d221d49aa98d407a18c9d2eb0f5658f56920cbc
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra3.c')
-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 d82c6d1d9fe7..98ae034c75c4 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); |