summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/cpu.c')
-rw-r--r--apps/plugins/rockboy/cpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/rockboy/cpu.c b/apps/plugins/rockboy/cpu.c
index 1aca06f337..f1926fe421 100644
--- a/apps/plugins/rockboy/cpu.c
+++ b/apps/plugins/rockboy/cpu.c
@@ -333,8 +333,6 @@ void cpu_timers(int cnt)
333 333
334static int cpu_idle(int max) 334static int cpu_idle(int max)
335{ 335{
336 int cnt, unit;
337
338 if (!(cpu.halt && IME)) return 0; 336 if (!(cpu.halt && IME)) return 0;
339 if (R_IF & R_IE) 337 if (R_IF & R_IE)
340 { 338 {
@@ -353,6 +351,7 @@ static int cpu_idle(int max)
353 return max; 351 return max;
354 } 352 }
355 353
354 int cnt, unit;
356 /* Figure out when the next timer interrupt will happen */ 355 /* Figure out when the next timer interrupt will happen */
357 unit = ((-R_TAC) & 3) << 1; 356 unit = ((-R_TAC) & 3) << 1;
358 cnt = (511 - cpu.tim + (1<<unit)) >> unit; 357 cnt = (511 - cpu.tim + (1<<unit)) >> unit;