From 7177536bbb74197b9260774c1daf375f44c3f5e5 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Thu, 27 May 2004 00:31:28 -0700 Subject: [PATCH] [PATCH] ia64: don't udelay() in sn_mmiob 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/sn/io/machvec/iomv.c b/arch/ia64/sn/io/machvec/iomv.c index df17cc049541b..10ee752ea8895 100644 --- a/arch/ia64/sn/io/machvec/iomv.c +++ b/arch/ia64/sn/io/machvec/iomv.c @@ -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); -- 2.53.0