From 21af2f0289deade2a179d9cef01e3258ad7315c8 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 5 Jun 2003 18:53:43 -0700 Subject: [PATCH] per-cpu support inside modules (minimal) From: Rusty Russell OK, this does the *minimum* required to support DEFINE_PER_CPU inside modules. If we decide to change kmalloc_percpu later, great, we can turf this out. Basically, overallocates the amount of per-cpu data at boot to at least PERCPU_ENOUGH_ROOM if CONFIG_MODULES=y (arch-specific by default 32k: I have only 7744 bytes of percpu data in my kernel here, so makes sense), and a special allocator in module.c dishes it out. --- include/linux/module.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux/module.h') diff --git a/include/linux/module.h b/include/linux/module.h index 73e3de311d51..910f46f4e620 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -247,6 +247,9 @@ struct module char *strtab; #endif + /* Per-cpu data. */ + void *percpu; + /* The command line arguments (may be mangled). People like keeping pointers to this stuff */ char *args; -- cgit v1.2.3