Thread (21 messages) 21 messages, 4 authors, 2012-12-05
STALE4939d

[PATCH 2/5] ARM: tegra20: clocks: add CPU low-power function into tegra_cpu_car_ops

From: Joseph Lo <hidden>
Date: 2012-12-04 04:28:47
Also in: linux-tegra

On Tue, 2012-12-04 at 02:20 +0800, Stephen Warren wrote:
On 12/02/2012 08:00 PM, Joseph Lo wrote:
quoted
Add suspend, resume and rail_off_ready API into tegra_cpu_car_ops. These
functions were used for CPU powered-down state maintenance.
quoted
diff --git a/arch/arm/mach-tegra/tegra20_clocks.c b/arch/arm/mach-tegra/tegra20_clocks.c
quoted
+static bool tegra20_cpu_rail_off_ready(void)
quoted
+	if ((cpu_rst_status & 0x2) != 0x2)
+		return false;
+
+	return true;
+}
Perhaps simplify that to:

return cpu_rst_status & 2;

or perhaps if that generates an int->bool performance warning:

return !!(cpu_rst_status & 2);
OK. Will do this.

Thanks,
Joseph
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help