diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-15 15:04:07 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-15 15:04:07 -0800 |
commit | b62818e5ff78cab4daf04fc0c12f86475dbc4b69 (patch) | |
tree | 6fa6dbca48e203014da4a598ab442abc3f252739 /arch/sparc/include | |
parent | 711c71a092ccedf5e24cff25e577bfa0148fce66 (diff) |
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>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/pcr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/pcr.h b/arch/sparc/include/asm/pcr.h index a2f5c61f924..843e4faf6a5 100644 --- a/arch/sparc/include/asm/pcr.h +++ b/arch/sparc/include/asm/pcr.h @@ -43,4 +43,6 @@ static inline u64 picl_value(unsigned int nmi_hz) extern u64 pcr_enable; +extern int pcr_arch_init(void); + #endif /* __PCR_H */ |