patch-2.1.104 linux/arch/ppc/boot/vreset.c
Next file: linux/arch/ppc/kernel/ppc-stub.c
Previous file: linux/arch/ppc/boot/misc.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Thu May 21 14:24:05 1998
- Orig file:
v2.1.103/linux/arch/ppc/boot/vreset.c
- Orig date:
Thu Apr 23 20:21:28 1998
diff -u --recursive --new-file v2.1.103/linux/arch/ppc/boot/vreset.c linux/arch/ppc/boot/vreset.c
@@ -416,7 +416,6 @@
static int scanPCI(int start_slt);
static int PCIVendor(int);
static void printslots(void);
-int delayLoop(int);
extern void puthex(unsigned long);
extern void puts(const char *);
static void unlockS3(void);
@@ -495,7 +494,7 @@
puts("VGA Chip Vendor ID: ");
puthex(PCIVendor(slot));
puts("\n");
- delayLoop(1);
+ mdelay(1000);
#endif
};
@@ -513,10 +512,10 @@
#ifdef DEBUG
printslots();
- delayLoop(5);
+ mdelay(5000);
#endif
- delayLoop(1); /* give time for the video monitor to come up */
+ mdelay(1000); /* give time for the video monitor to come up */
}
return (1); /* 'CRT' I/O supported */
}
@@ -805,21 +804,6 @@
return ( theSlot );
}
-
-/* Delay for a certain number of seconds */
-/* Note: They loop is used since 'udelay' can't handle really long counts! */
-
-int
-delayLoop(int k)
-{
- int i;
- while (k-- > 0) {
- for (i = 0; i < 1000; i++) {
- udelay(1000);
- }
- }
-}
-
/* return Vendor ID of card in the slot */
static
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov