patch-1.3.4 linux/include/asm-sparc/delay.h

Next file: linux/include/asm-sparc/dma.h
Previous file: linux/include/asm-sparc/cypress.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/include/asm-sparc/delay.h linux/include/asm-sparc/delay.h
@@ -23,10 +23,8 @@
 {
   usecs *= 0x000010c6;         /* Sparc is 32-bit just like ix86 */
 
-  __asm__("sethi %hi(_loops_per_sec), %o1\n\t"
-	  "ld [%o1 + %lo(_loops_per_sec)], %o1\n\t"
-	  "call ___delay\n\t"
-	  "umul %o1, %o0, %o0\n\t");
+  __delay(loops_per_sec*usecs);
+
 }
 
 /* calibrate_delay() wants this... */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this