direct-io.hg
diff linux-2.6-xen-sparse/include/xen/features.h @ 8731:0e87a5bd6e8b
Unpack xen_features into an array of u8 'booleans'
This allows us to avoid including bitops.h all over the tree as well
as avoiding any potential endianness issues in the future.
Use __read_mostly on the xen_features array now that the tree is based
on a version of Linux which supports it.
Also export xen_features for use in modules.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
This allows us to avoid including bitops.h all over the tree as well
as avoiding any potential endianness issues in the future.
Use __read_mostly on the xen_features array now that the tree is based
on a version of Linux which supports it.
Also export xen_features for use in modules.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author | Ian.Campbell@xensource.com |
---|---|
date | Wed Feb 01 20:11:18 2006 +0000 (2006-02-01) |
parents | fd9b2c1bb577 |
children |
line diff
1.1 --- a/linux-2.6-xen-sparse/include/xen/features.h Wed Feb 01 18:00:19 2006 +0000 1.2 +++ b/linux-2.6-xen-sparse/include/xen/features.h Wed Feb 01 20:11:18 2006 +0000 1.3 @@ -13,8 +13,8 @@ 1.4 1.5 extern void setup_xen_features(void); 1.6 1.7 -extern unsigned long xen_features[XENFEAT_NR_SUBMAPS]; 1.8 +extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32]; 1.9 1.10 -#define xen_feature(flag) (test_bit(flag, xen_features)) 1.11 +#define xen_feature(flag) (xen_features[flag]) 1.12 1.13 #endif /* __ASM_XEN_FEATURES_H__ */