]> asedeno.scripts.mit.edu Git - linux.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)
commit534f5f36a2c10fda181de2d7023d2100e2a59048
treef25996a268d8094fca6d80359b29a7140db20ab0
parent55de88778f4bfe6333db4e475afb15ef413b4874
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