powerpc/kernel/sysfs: Cleanup set up macros for PMC/non-PMC SPRs
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Thu, 3 Oct 2013 09:27:35 +0000 (14:57 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Dec 2013 03:16:04 +0000 (14:16 +1100)
commitfd7e42960d7bdf825fedc665727baab4cec44164
tree35f10c42d4cd5ba41dd5df6577d5ef8e1980136e
parentc041cfa2af1ccb8d0346dc576144a1085e9b4d4b
powerpc/kernel/sysfs: Cleanup set up macros for PMC/non-PMC SPRs

Currently PMC (Performance Monitor Counter) setup macros are used
for other SPRs. Since not all SPRs are PMC related, this patch
modifies the exisiting macro and uses it to setup both PMC and
non PMC SPRs accordingly.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/sysfs.c