Use DRM_MEMORYBARRIER() macro instead of mb().

main
Ian Romanick 2007-08-09 18:28:16 -07:00
parent 371f0a4d41
commit 06e09842df
1 changed files with 1 additions and 5 deletions

View File

@ -96,11 +96,7 @@ static int xgi_pcie_lut_init(struct xgi_info * info)
lut[i] = info->dev->sg->busaddr[i]; lut[i] = info->dev->sg->busaddr[i];
} }
#if defined(__i386__) || defined(__x86_64__) DRM_MEMORYBARRIER();
asm volatile ("wbinvd":::"memory");
#else
mb();
#endif
/* Set GART in SFB */ /* Set GART in SFB */
temp = DRM_READ8(info->mmio_map, 0xB00C); temp = DRM_READ8(info->mmio_map, 0xB00C);