# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1160122751 -32400 # Node ID f9458c8350beb57eb7001c351848c0de416e494c # Parent 5e54b8eb76f41f73ab49ebee0db1691223b51f04 added __read_mostly to some variables. PATCHNAME: add___read_mostly_to_some_variables Signed-off-by: Isaku Yamahata diff -r 5e54b8eb76f4 -r f9458c8350be xen/arch/ia64/xen/xenmem.c --- a/xen/arch/ia64/xen/xenmem.c Fri Oct 06 16:57:10 2006 +0900 +++ b/xen/arch/ia64/xen/xenmem.c Fri Oct 06 17:19:11 2006 +0900 @@ -38,13 +38,13 @@ boolean_param("contig_mem", opt_contig_m #define opt_contig_mem 1 #endif -struct page_info *frame_table; +struct page_info *frame_table __read_mostly; unsigned long max_page; /* * Set up the page tables. */ -volatile unsigned long *mpt_table; +volatile unsigned long *mpt_table __read_mostly; void paging_init (void) diff -r 5e54b8eb76f4 -r f9458c8350be xen/arch/ia64/xen/xensetup.c --- a/xen/arch/ia64/xen/xensetup.c Fri Oct 06 16:57:10 2006 +0900 +++ b/xen/arch/ia64/xen/xensetup.c Fri Oct 06 17:19:11 2006 +0900 @@ -82,7 +82,7 @@ unsigned long xenheap_size = XENHEAP_DEF unsigned long xenheap_size = XENHEAP_DEFAULT_SIZE; extern long running_on_sim; unsigned long xen_pstart; -void *xen_heap_start; +void *xen_heap_start __read_mostly; static int xen_count_pages(u64 start, u64 end, void *arg) diff -r 5e54b8eb76f4 -r f9458c8350be xen/arch/ia64/xen/xentime.c --- a/xen/arch/ia64/xen/xentime.c Fri Oct 06 16:57:10 2006 +0900 +++ b/xen/arch/ia64/xen/xentime.c Fri Oct 06 17:19:11 2006 +0900 @@ -39,7 +39,7 @@ seqlock_t xtime_lock __cacheline_aligned #define TIME_KEEPER_ID 0 unsigned long domain0_ready = 0; static s_time_t stime_irq = 0x0; /* System time at last 'time update' */ -unsigned long itc_scale, ns_scale; +unsigned long itc_scale __read_mostly, ns_scale __read_mostly; unsigned long itc_at_irq; /* We don't expect an absolute cycle value here, since then no way