]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48443a7a9db9769a492e22c5464a9bd1bdbc26ef
tree35f10c42d4cd5ba41dd5df6577d5ef8e1980136e
parentab0586be02bc2ecd87939671e99d14952b23650b
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