diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-12 11:37:45 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-12 11:37:45 +0000 |
commit | 67bfbd67d1311a1a590b47e568a07622d4492873 (patch) | |
tree | 17fb757a0b4179d91042dcb8bf3fdb3859925fba /tools/xenmon | |
parent | b3a389fdfc3a1fe19fd7094b0180e97d49c186dd (diff) | |
download | xen-67bfbd67d1311a1a590b47e568a07622d4492873.tar.gz xen-67bfbd67d1311a1a590b47e568a07622d4492873.tar.bz2 xen-67bfbd67d1311a1a590b47e568a07622d4492873.zip |
libxenctrl headers should not pollute macro namespace with
mb/rmb/wmb. Instead add a xen_ prefix. Modify Xen's public headers to
expect the prefixed names instead of bare mb/rmb/wmb, but gate this
expectation on a bump of __XEN_INTERFACE_VERSION__.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/xenmon')
-rw-r--r-- | tools/xenmon/xenbaked.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenmon/xenbaked.c b/tools/xenmon/xenbaked.c index 728f14b753..32ca9f36c3 100644 --- a/tools/xenmon/xenbaked.c +++ b/tools/xenmon/xenbaked.c @@ -511,10 +511,10 @@ int monitor_tbufs(void) { while ( meta[i]->cons != meta[i]->prod ) { - rmb(); /* read prod, then read item. */ + xen_rmb(); /* read prod, then read item. */ rec_size = process_record( i, (struct t_rec *)(data[i] + meta[i]->cons % data_size)); - mb(); /* read item, then update cons. */ + xen_mb(); /* read item, then update cons. */ meta[i]->cons += rec_size; } } |