arm64: sysreg: subsume GICv3 sysreg definitions
authorMark Rutland <mark.rutland@arm.com>
Thu, 19 Jan 2017 17:57:43 +0000 (17:57 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 9 Mar 2017 15:29:45 +0000 (15:29 +0000)
commit0e9884fe63c68d7c9043410fd3ee009c1fc78985
tree0b26474f7d6496e0537e4f5b9b7540a727bfd6a3
parentc7a3c61fc60642b9b1462c6deb9fd531d30e333d
arm64: sysreg: subsume GICv3 sysreg definitions

Unlike most sysreg defintiions, the GICv3 definitions don't have a SYS_
prefix, and they don't live in <asm/sysreg.h>. Additionally, some
definitions are duplicated elsewhere (e.g. in the KVM save/restore
code).

For consistency, and to make it possible to share a common definition
for these sysregs, this patch moves the definitions to <asm/sysreg.h>,
adding a SYS_ prefix, and sorting the registers per their encoding.
Existing users of the definitions are fixed up so that this change is
not problematic.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/arch_gicv3.h
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/head.S