diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-08-09 18:28:16 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-08-09 18:28:16 -0700 |
commit | 06e09842dfbdaa9502d3b3e6b657de4e3630644c (patch) | |
tree | ea60b8aaa854e519f6f90c90a5548f07cabfb287 | |
parent | 371f0a4d410f02d8db050b51fd2e714f888a71e0 (diff) |
Use DRM_MEMORYBARRIER() macro instead of mb().
-rw-r--r-- | linux-core/xgi_pcie.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c index 932615a4..d15ea32a 100644 --- a/linux-core/xgi_pcie.c +++ b/linux-core/xgi_pcie.c @@ -96,11 +96,7 @@ static int xgi_pcie_lut_init(struct xgi_info * info) lut[i] = info->dev->sg->busaddr[i]; } -#if defined(__i386__) || defined(__x86_64__) - asm volatile ("wbinvd":::"memory"); -#else - mb(); -#endif + DRM_MEMORYBARRIER(); /* Set GART in SFB */ temp = DRM_READ8(info->mmio_map, 0xB00C); |