else
BUG_ON(alt->alt_len != alt->orig_len);
- pr_info_once("patching kernel code\n");
-
origptr = ALT_ORIG_PTR(alt);
updptr = is_module ? origptr : lm_alias(origptr);
nr_inst = alt->orig_len / AARCH64_INSN_SIZE;
void __init apply_alternatives_all(void)
{
+ pr_info("applying system-wide alternatives\n");
+
/* better not try code patching on a live SMP system */
stop_machine(__apply_alternatives_multi_stop, NULL, cpu_online_mask);
}
/* If called on non-boot cpu things could go wrong */
WARN_ON(smp_processor_id() != 0);
+ pr_info("applying boot alternatives\n");
+
__apply_alternatives(®ion, false, &boot_capabilities[0]);
}