]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/module.h
module: encapsulate percpu handling better and record percpu_size
[net-next-2.6.git] / include / linux / module.h
index 5e869ffd34aa0203438c7136b681a276140bb48c..87d247ac676112b7f2cad30511d0bf17b19b084f 100644 (file)
@@ -330,8 +330,11 @@ struct module
        struct module_notes_attrs *notes_attrs;
 #endif
 
+#ifdef CONFIG_SMP
        /* Per-cpu data. */
-       void *percpu;
+       void __percpu *percpu;
+       unsigned int percpu_size;
+#endif
 
        /* The command line arguments (may be mangled).  People like
           keeping pointers to this stuff */