arm64: Convert core type check macros into inline functions
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 1 Jan 2025 19:19:04 +0000 (20:19 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 12 Jan 2025 22:49:58 +0000 (23:49 +0100)
commitddb0f26dc45ff2f2528c5e11629c490308ccc708
treef3a3c5ee7676f008ca93c1f52c20a5612aa77c19
parentbc157bb6667ed97e33be8ce8436c28baa275b295
arm64: Convert core type check macros into inline functions

Turn the core type check macros into inline functions to perform
better type checking on them. The inline functions get optimized
out in case they are not used. Indent the MIDR_PARTNUM_CORTEX_An
macros in preparation for addition of future three-digit cores
and use MIDR_PARTNUM_SHIFT in MIDR_PARTNUM_MASK to be consistent.

Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/arm/include/asm/armv8/cpu.h