diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-01-17 10:56:34 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-01-17 10:56:34 +0100 |
commit | cda084b3d8901dab95f22aa6047e103e1032d486 (patch) | |
tree | 1667d5ddff071a9be2a3be8d57237cebc3dd2d34 /xen/xsm | |
parent | 39bc4673785f6455242f514ea0fa9359bdf1639c (diff) | |
download | xen-cda084b3d8901dab95f22aa6047e103e1032d486.tar.gz xen-cda084b3d8901dab95f22aa6047e103e1032d486.tar.bz2 xen-cda084b3d8901dab95f22aa6047e103e1032d486.zip |
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 <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/xsm')
-rw-r--r-- | xen/xsm/xsm_policy.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |