]> git.baikalelectronics.ru Git - kernel.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)
commit1592cd1b4fcb2650c6088552bbdb42b14d10d5b5
treefb212b112204f6416f75149cd7fb4bdc1d899dfe
parente9725177375c6552503451be7766461ccdc3c000
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