X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fmodule.c;h=a566745dde621a075e225c52a432316bec58afc0;hb=fb7a0e36532bc231bea8adfb1dddc3961eb38940;hp=83b3d376708c04f00fdf674622b1c1071045eada;hpb=73561695b2e77473e353a5ae63bab81ed5098d8e;p=linux-2.6 diff --git a/kernel/module.c b/kernel/module.c index 83b3d37670..a566745dde 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -379,7 +379,7 @@ static void module_unload_init(struct module *mod) for (i = 0; i < NR_CPUS; i++) local_set(&mod->ref[i].count, 0); /* Hold reference count during initialization. */ - local_set(&mod->ref[_smp_processor_id()].count, 1); + local_set(&mod->ref[raw_smp_processor_id()].count, 1); /* Backwards compatibility macros put refcount during init. */ mod->waiter = current; }