]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8682/1: V7M: Set cacheid iff DminLine or IminLine is nonzero
authorVladimir Murzin <vladimir.murzin@arm.com>
Mon, 12 Jun 2017 12:35:52 +0000 (13:35 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 12 Jun 2017 14:47:29 +0000 (15:47 +0100)
commita4b560344a6819b53512dd9ad2d5db668290c0e2
treeac764253122a5234c0c229110f0b0b065a2d8f1d
parentad58cf8e2fd630177b86bfd232745dc20168dc38
ARM: 8682/1: V7M: Set cacheid iff DminLine or IminLine is nonzero

Cache support is optional feature in M-class cores, thus DminLine or
IminLine of Cache Type Register is zero if caches are not implemented,
but we check the whole CTR which has other features encoded there.
Let's be more precise and check for DminLine and IminLine of CTR
before we set cacheid.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/setup.c