]> err.no Git - linux-2.6/commitdiff
[IA64-SGI] - New SN hardware support - cpu_relax
authorJack Steiner <steiner@sgi.com>
Thu, 11 Aug 2005 17:28:00 +0000 (10:28 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 17 Aug 2005 22:31:53 +0000 (15:31 -0700)
Add a few missing calls to "hint @pause".

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/bte.c
arch/ia64/sn/kernel/huberror.c
arch/ia64/sn/pci/pcibr/pcibr_dma.c
include/asm-ia64/sn/sn_sal.h

index 7adef84190dbc922e149cf285f34b5cfa8aede78..b75814efadba7e61a8853ad858e0918d045b48c5 100644 (file)
@@ -215,6 +215,7 @@ retry_bteop:
        }
 
        while ((transfer_stat = *bte->most_rcnt_na) == BTE_WORD_BUSY) {
+               cpu_relax();
                if (ia64_get_itc() > itc_end) {
                        BTE_PRINTK(("BTE timeout nasid 0x%x bte%d IBLS = 0x%lx na 0x%lx\n",
                                NASID_GET(bte->bte_base_addr), bte->bte_num,
index 5c39b43ba3c029604103bb1757dbe3d5db1faa5c..5c5eb01c50f02b53f97513eda0e1e65e3daa2c00 100644 (file)
@@ -76,7 +76,7 @@ void hubiio_crb_free(struct hubdev_info *hubdev_info, int crbnum)
         */
        REMOTE_HUB_S(hubdev_info->hdi_nasid, IIO_ICDR, (IIO_ICDR_PND | crbnum));
        while (REMOTE_HUB_L(hubdev_info->hdi_nasid, IIO_ICDR) & IIO_ICDR_PND)
-               udelay(1);
+               cpu_relax();
 
 }
 
index 0f254255f6a13bc522f6c6d618750737776a1ab3..34093476e9652fc03938edeadeddb4596d439d34 100644 (file)
@@ -317,7 +317,8 @@ void sn_dma_flush(uint64_t addr)
                *(volatile uint32_t *)(p->sfdl_force_int_addr) = 1;
 
                /* wait for the interrupt to come back. */
-               while (*(p->sfdl_flush_addr) != 0x10f) ;
+               while (*(p->sfdl_flush_addr) != 0x10f)
+                       cpu_relax();
 
                /* okay, everything is synched up. */
                spin_unlock_irqrestore((spinlock_t *)&p->sfdl_flush_lock, flags);
index 27976d22318657e56fcdc48833cf993a887309b1..99cb9ed3431236bb446b89af0c51ee0123ec52b6 100644 (file)
@@ -749,7 +749,8 @@ ia64_sn_power_down(void)
 {
        struct ia64_sal_retval ret_stuff;
        SAL_CALL(ret_stuff, SN_SAL_SYSTEM_POWER_DOWN, 0, 0, 0, 0, 0, 0, 0);
-       while(1);
+       while(1)
+               cpu_relax();
        /* never returns */
 }