arm64: alternative: log outside of patching sequence

In __apply_alternative() we use pr_info_once() to log a message
immediately before we patch an alternative sequence for the first time.
This isn't always safe, as pr_info_once() could make use of patched
code, or be subject to compiler instrumentation which makes use of
patched code. It would be nicer to factor this out such that it's clear
we don't make unsafe calls during the patching sequence.

This patch replaces the pr_info_once() with unconditional pr_info()
calls in apply_alternatives_all() and apply_boot_alternatives(). This
means we will always log the message, even when there are no patches to
apply, but as we apply patches in the vast majority of cases this is not
a significant loss.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will@kernel.org>
1 file changed