]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8730/1: B15: Add suspend/resume hooks
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 1 Dec 2017 00:10:12 +0000 (01:10 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 17 Dec 2017 22:15:37 +0000 (22:15 +0000)
commite9725177375c6552503451be7766461ccdc3c000
treef25996a268d8094fca6d80359b29a7140db20ab0
parent9906cef79ecf4711d6f5791d14025f5c9fb54be4
ARM: 8730/1: B15: Add suspend/resume hooks

The Broadcom Brahma-B15 CPU readahead cache registers will be restored
to their Power-on-Reset values after a S3 suspend/resume cycles, so we
want to restore what we had enabled before.

Another thing we want to take care of is disabling the read-ahead cache
prior to suspending to avoid any sort of side effect with the spinlock
we need to grab to serialize register accesses.

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