From 59d4d2025c9f1b0a68b780fe6a6f0e313caf3027 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Wed, 12 Nov 2008 04:15:34 +0000 Subject: Revert last commit (accidentally committed the whole tree) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19095 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/rockboy/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins/rockboy/cpu.c') diff --git a/apps/plugins/rockboy/cpu.c b/apps/plugins/rockboy/cpu.c index f1926fe421..1aca06f337 100644 --- a/apps/plugins/rockboy/cpu.c +++ b/apps/plugins/rockboy/cpu.c @@ -333,6 +333,8 @@ void cpu_timers(int cnt) static int cpu_idle(int max) { + int cnt, unit; + if (!(cpu.halt && IME)) return 0; if (R_IF & R_IE) { @@ -351,7 +353,6 @@ static int cpu_idle(int max) return max; } - int cnt, unit; /* Figure out when the next timer interrupt will happen */ unit = ((-R_TAC) & 3) << 1; cnt = (511 - cpu.tim + (1<> unit; -- cgit v1.2.3