LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Mark cache_names __initdata
@ 2004-05-27 12:48 Brian Gerst
0 siblings, 0 replies; only message in thread
From: Brian Gerst @ 2004-05-27 12:48 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
We don't need to keep the pointer array around after the caches are
initialized. This doesn't affect the actual strings.
--
Brian Gerst
[-- Attachment #2: cache_names_init-1 --]
[-- Type: text/plain, Size: 595 bytes --]
diff -urN linux-2.6.7-rc1-bk/mm/slab.c linux/mm/slab.c
--- linux-2.6.7-rc1-bk/mm/slab.c 2004-05-23 18:41:51.000000000 -0400
+++ linux/mm/slab.c 2004-05-27 08:44:43.751423008 -0400
@@ -477,10 +477,12 @@
EXPORT_SYMBOL(malloc_sizes);
/* Must match cache_sizes above. Out of line to keep cache footprint low. */
-static struct cache_names {
+struct cache_names {
char *name;
char *name_dma;
-} cache_names[] = {
+};
+
+static struct cache_names __initdata cache_names[] = {
#define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" },
#include <linux/kmalloc_sizes.h>
{ 0, }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-27 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 12:48 [PATCH] Mark cache_names __initdata Brian Gerst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).