sparc64: Abstract away the %pcr values used to enable/disable NMI
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Aug 2012 06:31:59 +0000 (23:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Aug 2012 06:26:19 +0000 (23:26 -0700)
commitce4a925c29208cf48084d9fa174d965a65246a8d
tree9b99aafebe393782e602d6960da416dd36bb89e8
parent73a6b0538c131d489fe7a2581deddb72faca496b
sparc64: Abstract away the %pcr values used to enable/disable NMI

We assumed PCR_PIC_PRIV can always be used to disable it, but that
won't be true for SPARC-T4.

This allows us also to get rid of some messy defines used in only
one location.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pcr.h
arch/sparc/kernel/nmi.c
arch/sparc/kernel/pcr.c