OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371f0a4
)
Use DRM_MEMORYBARRIER() macro instead of mb().
author
Ian Romanick
<idr@us.ibm.com>
Fri, 10 Aug 2007 01:28:16 +0000
(18:28 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Fri, 10 Aug 2007 01:28:16 +0000
(18:28 -0700)
linux-core/xgi_pcie.c
patch
|
blob
|
history
diff --git
a/linux-core/xgi_pcie.c
b/linux-core/xgi_pcie.c
index
932615a
..
d15ea32
100644
(file)
--- 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);