aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/module.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 6c562828c85c..404e722930fc 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -526,14 +526,8 @@ EXPORT_TRACEPOINT_SYMBOL(module_get);
526/* Init the unload section of the module. */ 526/* Init the unload section of the module. */
527static void module_unload_init(struct module *mod) 527static void module_unload_init(struct module *mod)
528{ 528{
529 int cpu;
530
531 INIT_LIST_HEAD(&mod->source_list); 529 INIT_LIST_HEAD(&mod->source_list);
532 INIT_LIST_HEAD(&mod->target_list); 530 INIT_LIST_HEAD(&mod->target_list);
533 for_each_possible_cpu(cpu) {
534 per_cpu_ptr(mod->refptr, cpu)->incs = 0;
535 per_cpu_ptr(mod->refptr, cpu)->decs = 0;
536 }
537 531
538 /* Hold reference count during initialization. */ 532 /* Hold reference count during initialization. */
539 __this_cpu_write(mod->refptr->incs, 1); 533 __this_cpu_write(mod->refptr->incs, 1);