arm64/panic: Unify all three existing notifier blocks
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 29 Jun 2020 04:38:31 +0000 (10:08 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 2 Jul 2020 14:44:50 +0000 (15:44 +0100)
commit638d503130098e234b002942b33a4d886ef6f270
tree74155af1c5f7a2f27d7460a9be64fc15cd80dcdc
parentd4e0340919fb9190a57e879fb3125c4acce0d9b2
arm64/panic: Unify all three existing notifier blocks

Currently there are three different registered panic notifier blocks. This
unifies all of them into a single one i.e arm64_panic_block, hence reducing
code duplication and required calling sequence during panic. This preserves
the existing dump sequence. While here, just use device_initcall() directly
instead of __initcall() which has been a legacy alias for the earlier. This
replacement is a pure cleanup with no functional implications.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Steve Capper <steve.capper@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Link: https://lore.kernel.org/r/1593405511-7625-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/memory.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/setup.c
arch/arm64/mm/init.c