arm: mark heap and frametable limits as read mostly
authorIan Campbell <ian.campbell@citrix.com>
Thu, 11 Oct 2012 14:57:00 +0000 (15:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Oct 2012 14:57:00 +0000 (15:57 +0100)
These are used in virt_to_page and page_to_virt so I imagine there's
some small benefit to this (but I've not measured)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c

index f566d4c6101e48621c47d05d0d40662ade6b1392..b0068d2a66ad2d4cbd56404f28839be9e337871e 100644 (file)
@@ -46,11 +46,12 @@ uint64_t boot_httbr;
 static paddr_t phys_offset;
 
 /* Limits of the Xen heap */
-unsigned long xenheap_mfn_start, xenheap_mfn_end;
-unsigned long xenheap_virt_end;
+unsigned long xenheap_mfn_start __read_mostly;
+unsigned long xenheap_mfn_end __read_mostly;
+unsigned long xenheap_virt_end __read_mostly;
 
-unsigned long frametable_base_mfn;
-unsigned long frametable_virt_end;
+unsigned long frametable_base_mfn __read_mostly;
+unsigned long frametable_virt_end __read_mostly;
 
 unsigned long max_page;