[PATCH v3 1/8] arm64/sysreg: Add definitions for immediate versions of MSR ALLINT
Mark Brown
broonie at kernel.org
Mon May 6 08:15:06 PDT 2024
On Fri, May 03, 2024 at 05:00:49PM +0100, Mark Rutland wrote:
> On Mon, Apr 15, 2024 at 06:47:51AM +0000, Liao Chang wrote:
> +#define PSTATE_ALLINT pstate_field(1, 0)
> +#define set_pstate_allint(x) asm volatile(SET_PSTATE_ALLINT(x))
Hrm, those helpers are not ideally discoverable, partly due to the
system register description for ALLINT not providing any references to
this being a general scheme (which is fixable there) and partly due to
the use of __emit_inst() with a numeric literal - we should probably add
a comment next to the __emit_inst() saying what instruction we are
emitting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240507/4b5dbf33/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list