Przeglądaj źródła

power, timer: reset TBL before TBU

In order to avoid TBU increment due to TBL reaching its max
and wrapping, reset TBL before resetting TBU

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Christophe Leroy 7 lat temu
rodzic
commit
f0eda3cb89
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      arch/powerpc/lib/time.c

+ 1 - 1
arch/powerpc/lib/time.c

@@ -66,7 +66,7 @@ int timer_init(void)
 	unsigned long temp;
 
 	/* reset */
-	asm volatile("li %0,0 ; mttbu %0 ; mttbl %0;"
+	asm volatile("li %0,0 ; mttbl %0 ; mttbu %0;"
 	     : "=&r"(temp) );
 
 	return (0);