]> git.karo-electronics.de Git - mv-sheeva.git/commit
sparc64: Fix NMI startup bug which also breaks perf.
authorDavid S. Miller <davem@davemloft.net>
Tue, 15 Feb 2011 23:04:07 +0000 (15:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Feb 2011 23:04:07 +0000 (15:04 -0800)
commitb62818e5ff78cab4daf04fc0c12f86475dbc4b69
tree6fa6dbca48e203014da4a598ab442abc3f252739
parent711c71a092ccedf5e24cff25e577bfa0148fce66
sparc64: Fix NMI startup bug which also breaks perf.

Doing NMI startup as an early initcall doesn't work because we need
to have SMP started up by then.

So we'd only NMI startup one cpu, which causes perf PMU grab to
BUG because the nmi_active count isn't what it's supposed to be.

This also points out that we don't have proper CPU up/down notifiers
for the NMI code which will need to be fixed at some point.

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