]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: don't udelay() in sn_mmiob
authorJesse Barnes <jbarnes@engr.sgi.com>
Thu, 27 May 2004 07:31:28 +0000 (00:31 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 27 May 2004 07:31:28 +0000 (00:31 -0700)
sn_mmiob is a lightweight way to ensure PCI write ordering, intended
to be used as an alternative to doing a PIO read. Unfortunately, with
the udelay() in there, it ends up being slower than a PCI read on
small configurations, so remove it in favor of a simple cpu_relax().

arch/ia64/sn/io/machvec/iomv.c

index df17cc049541bd878544ae7c70b24490c03fa38b..10ee752ea88957480d0af31fe808b02a2bbadd1a 100644 (file)
@@ -71,6 +71,6 @@ sn_mmiob (void)
 {
        while ((((volatile unsigned long) (*pda->pio_write_status_addr)) & SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT_MASK) != 
                                SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT_MASK)
-               udelay(1);
+               cpu_relax();
 }
 EXPORT_SYMBOL(sn_mmiob);