From cda084b3d8901dab95f22aa6047e103e1032d486 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 17 Jan 2013 10:56:34 +0100 Subject: miscellaneous cleanup ... noticed while putting together the 16Tb support patches for x86. Briefly, this (in order of the changes below) - fixes an inefficiency in x86's context switch code (translations to/ from struct page are more involved than to/from MFNs) - drop unnecessary MFM-to-page conversions - drop a redundant call to destroy_xen_mappings() (an indentical call is being made a few lines up) - simplify a VA-to-MFN translation - drop dead code (several occurrences) - add a missing __init annotation Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- xen/xsm/xsm_policy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xen/xsm') diff --git a/xen/xsm/xsm_policy.c b/xen/xsm/xsm_policy.c index a419cf4e84..65be61d415 100644 --- a/xen/xsm/xsm_policy.c +++ b/xen/xsm/xsm_policy.c @@ -25,8 +25,9 @@ char *__initdata policy_buffer = NULL; u32 __initdata policy_size = 0; -int xsm_policy_init(unsigned long *module_map, const multiboot_info_t *mbi, - void *(*bootstrap_map)(const module_t *)) +int __init xsm_policy_init(unsigned long *module_map, + const multiboot_info_t *mbi, + void *(*bootstrap_map)(const module_t *)) { int i; module_t *mod = (module_t *)__va(mbi->mods_addr); -- cgit v1.2.3