Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 9060/1: kexec: Remove unused kexec_reinit callback

The last (only?) user of this was removed in commit ba364fc752da ("ARM:
Kirkwood: Remove mach-kirkwood"), back in v3.17.

Link: https://lore.kernel.org/r/20210210235243.398810-1-joel@jms.id.au

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

authored by

Joel Stanley and committed by
Russell King
08cbcb97 95731b8e

-11
-3
arch/arm/include/asm/kexec.h
··· 56 56 } 57 57 } 58 58 59 - /* Function pointer to optional machine-specific reinitialization */ 60 - extern void (*kexec_reinit)(void); 61 - 62 59 static inline unsigned long phys_to_boot_phys(phys_addr_t phys) 63 60 { 64 61 return phys_to_idmap(phys);
-8
arch/arm/kernel/machine_kexec.c
··· 147 147 pr_info("Loading crashdump kernel...\n"); 148 148 } 149 149 150 - /* 151 - * Function pointer to optional machine-specific reinitialization 152 - */ 153 - void (*kexec_reinit)(void); 154 - 155 150 void machine_kexec(struct kimage *image) 156 151 { 157 152 unsigned long page_list, reboot_entry_phys; ··· 181 186 reboot_entry_phys = virt_to_idmap(reboot_entry); 182 187 183 188 pr_info("Bye!\n"); 184 - 185 - if (kexec_reinit) 186 - kexec_reinit(); 187 189 188 190 soft_restart(reboot_entry_phys); 189 191 }