[PATCH 0/2] arm64: sleep: two small compute_mpidr_hash cleanups
From: Bradley Morgan
Date: Sun Jul 05 2026 - 15:23:51 EST
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