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

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

From: Stephen Warren <hidden>
Date: 2012-12-03 18:20:26
Also in: linux-arm-kernel

On 12/02/2012 08:00 PM, Joseph Lo wrote:
Add suspend, resume and rail_off_ready API into tegra_cpu_car_ops. These
functions were used for CPU powered-down state maintenance.
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mach-tegra/tegra20_clocks.c b/arch/arm/mach-tegra/tegra20_clocks.c
+static bool tegra20_cpu_rail_off_ready(void)
+	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);

or:

return (cpu_rst_status >> 1) & 1;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help