diff options
| author | Christoph Lameter <christoph@scalex86.org> | 2005-09-06 18:16:33 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:18 -0400 |
| commit | c3d8c1414573be8cf7c8fdc1e076935697c7f6af (patch) | |
| tree | bd2fc21473e03fbbf5c1182ee584b68ebfd8b1cf /mm/page_alloc.c | |
| parent | b3dbb4ecd46767b621df3dedd28788da93ee0cac (diff) | |
[PATCH] More __read_mostly variables
Move some more frequently read variables that showed up during some of our
performance tests as sometimes ending up in hot cachelines to the
read_mostly section.
Fix: Move the __read_mostly from before hpet_usec_quotient to follow the
variable like the other uses of __read_mostly.
Signed-off-by: Alok N Kataria <alokk@calsoftinc.com>
Signed-off-by: Christoph Lameter <christoph@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b06a9636d971..34bba8f1144e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
| @@ -42,11 +42,11 @@ | |||
| 42 | * MCD - HACK: Find somewhere to initialize this EARLY, or make this | 42 | * MCD - HACK: Find somewhere to initialize this EARLY, or make this |
| 43 | * initializer cleaner | 43 | * initializer cleaner |
| 44 | */ | 44 | */ |
| 45 | nodemask_t node_online_map = { { [0] = 1UL } }; | 45 | nodemask_t node_online_map __read_mostly = { { [0] = 1UL } }; |
| 46 | EXPORT_SYMBOL(node_online_map); | 46 | EXPORT_SYMBOL(node_online_map); |
| 47 | nodemask_t node_possible_map = NODE_MASK_ALL; | 47 | nodemask_t node_possible_map __read_mostly = NODE_MASK_ALL; |
| 48 | EXPORT_SYMBOL(node_possible_map); | 48 | EXPORT_SYMBOL(node_possible_map); |
| 49 | struct pglist_data *pgdat_list; | 49 | struct pglist_data *pgdat_list __read_mostly; |
| 50 | unsigned long totalram_pages; | 50 | unsigned long totalram_pages; |
| 51 | unsigned long totalhigh_pages; | 51 | unsigned long totalhigh_pages; |
| 52 | long nr_swap_pages; | 52 | long nr_swap_pages; |
| @@ -68,7 +68,7 @@ EXPORT_SYMBOL(nr_swap_pages); | |||
| 68 | * Used by page_zone() to look up the address of the struct zone whose | 68 | * Used by page_zone() to look up the address of the struct zone whose |
| 69 | * id is encoded in the upper bits of page->flags | 69 | * id is encoded in the upper bits of page->flags |
| 70 | */ | 70 | */ |
| 71 | struct zone *zone_table[1 << ZONETABLE_SHIFT]; | 71 | struct zone *zone_table[1 << ZONETABLE_SHIFT] __read_mostly; |
| 72 | EXPORT_SYMBOL(zone_table); | 72 | EXPORT_SYMBOL(zone_table); |
| 73 | 73 | ||
| 74 | static char *zone_names[MAX_NR_ZONES] = { "DMA", "Normal", "HighMem" }; | 74 | static char *zone_names[MAX_NR_ZONES] = { "DMA", "Normal", "HighMem" }; |
