ARM: 8573/1: domain: move {set,get}_domain under config guard
authorVladimir Murzin <vladimir.murzin@arm.com>
Wed, 4 May 2016 09:39:02 +0000 (10:39 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 5 May 2016 18:03:02 +0000 (19:03 +0100)
commitec953b70f368330e806a94df6fe2dd1d72176b2d
tree83b5c0abd92b2f9490d6f3e9b3362af14babfbd0
parent5b526bd92511a12807a51b7bedd16af03e99bc33
ARM: 8573/1: domain: move {set,get}_domain under config guard

Recursive undefined instrcution falut is seen with R-class taking an
exception. The reson for that is __show_regs() tries to get domain
information, but domains is not available on !MMU cores, like R/M
class.

Fix it by puting {set,get}_domain functions under CONFIG_CPU_CP15_MMU
guard and providing stubs for the case where domains is not supported.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/domain.h
This page took 0.027137 seconds and 5 git commands to generate.