]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: 8728/1: B15: Register reboot notifier for KEXEC
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 1 Dec 2017 00:10:13 +0000 (01:10 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 17 Dec 2017 22:15:38 +0000 (22:15 +0000)
commit576a08602240e960e42436a2d35c11fd3f561e4f
treefb212b112204f6416f75149cd7fb4bdc1d899dfe
parent534f5f36a2c10fda181de2d7023d2100e2a59048
ARM: 8728/1: B15: Register reboot notifier for KEXEC

During kexec, we will go through kernel_kexec() -> syscore_suspend() if
CONFIG_KEXEC_JUMP is set, if not, down the road we end-up calling
kernel_restart_prepare() which invokes reboot notifiers with
SYS_RESTART.

We register a reboot notifier to make sure that the B15 read-ahead cache
is disabled, since it is another level of instruction and data cache,
and we want to avoid any potential side effects with booting a new
kernel with such a cache still turned on.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/cache-b15-rac.c