aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/tmem_xen.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-24 10:10:45 +0000
committerKeir Fraser <keir@xen.org>2010-12-24 10:10:45 +0000
commit5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a (patch)
tree2537340f7328351fb2f462d325a89c42befffc3d /xen/include/xen/tmem_xen.h
parent53ecc28f0e91051cf7874012ea13a6899910b105 (diff)
downloadxen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.gz
xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.tar.bz2
xen-5814ca6b9c845e77c22fb034e8e7a9b35fe6b59a.zip
Use bool_t for various boolean variables
... decreasing cache footprint. As a prerequisite this requires making cmdline_parse() a little more flexible. Also remove a few variables altogether, and adjust sections annotations for several others. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/tmem_xen.h')
-rw-r--r--xen/include/xen/tmem_xen.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/xen/include/xen/tmem_xen.h b/xen/include/xen/tmem_xen.h
index c126088bca..3dbf6f800a 100644
--- a/xen/include/xen/tmem_xen.h
+++ b/xen/include/xen/tmem_xen.h
@@ -51,20 +51,20 @@ extern int tmh_init(void);
extern void tmh_release_avail_pages_to_host(void);
extern void tmh_scrub_page(struct page_info *pi, unsigned int memflags);
-extern int opt_tmem_compress;
-static inline int tmh_compression_enabled(void)
+extern bool_t opt_tmem_compress;
+static inline bool_t tmh_compression_enabled(void)
{
return opt_tmem_compress;
}
-extern int opt_tmem_dedup;
-static inline int tmh_dedup_enabled(void)
+extern bool_t opt_tmem_dedup;
+static inline bool_t tmh_dedup_enabled(void)
{
return opt_tmem_dedup;
}
-extern int opt_tmem_tze;
-static inline int tmh_tze_enabled(void)
+extern bool_t opt_tmem_tze;
+static inline bool_t tmh_tze_enabled(void)
{
return opt_tmem_tze;
}
@@ -74,22 +74,20 @@ static inline void tmh_tze_disable(void)
opt_tmem_tze = 0;
}
-extern int opt_tmem_shared_auth;
-static inline int tmh_shared_auth(void)
+extern bool_t opt_tmem_shared_auth;
+static inline bool_t tmh_shared_auth(void)
{
return opt_tmem_shared_auth;
}
-extern int opt_tmem;
-static inline int tmh_enabled(void)
+extern bool_t opt_tmem;
+static inline bool_t tmh_enabled(void)
{
return opt_tmem;
}
extern int opt_tmem_lock;
-extern int opt_tmem_flush_dups;
-
/*
* Memory free page list management
*/
@@ -289,7 +287,6 @@ static inline void tmh_free_infra(void *p)
}
#define tmh_lock_all opt_tmem_lock
-#define tmh_flush_dups opt_tmem_flush_dups
#define tmh_called_from_tmem(_memflags) (_memflags & MEMF_tmem)
/* "Client" (==domain) abstraction */