[PATCH 0/2] arm64: sleep: two small compute_mpidr_hash cleanups
Bradley Morgan
include at grrlz.net
Sun Jul 5 12:23:29 PDT 2026
compute_mpidr_hash silently produces a wrong hash if its register
arguments overlap. Patch 1 turns that documented constraint into a
build time error. Patch 2 factors the MPIDR hash slot lookup, open
coded twice in the suspend and resume paths, into a shared macro so
both callers stay in sync. No functional change intended.
Bradley Morgan (2):
arm64: sleep: assert compute_mpidr_hash registers are distinct
arm64: sleep: dedup the sleep_save_stash slot lookup
arch/arm64/kernel/sleep.S | 69 +++++++++++++++++++++++++--------------
1 file changed, 44 insertions(+), 25 deletions(-)
--
2.53.0
More information about the linux-arm-kernel
mailing list