Lines Matching defs:smp
33 __setup("smp-alt-boot", bootonly);
54 __setup("noreplace-smp", setup_noreplace_smp);
302 struct smp_alt_module *smp;
314 smp = kzalloc(sizeof(*smp), GFP_KERNEL);
315 if (NULL == smp)
318 smp->mod = mod;
319 smp->name = name;
320 smp->locks = locks;
321 smp->locks_end = locks_end;
322 smp->text = text;
323 smp->text_end = text_end;
325 __func__, smp->locks, smp->locks_end,
326 smp->text, smp->text_end, smp->name);
329 list_add_tail(&smp->next, &smp_alt_modules);
331 alternatives_smp_unlock(smp->locks, smp->locks_end,
332 smp->text, smp->text_end);
356 void alternatives_smp_switch(int smp)
373 BUG_ON(!smp && (num_online_cpus() > 1));
381 if (smp == smp_mode) {
383 } else if (smp) {
398 smp_mode = smp;
402 /* Return 1 if the address range is reserved for smp-alternatives */