Patchwork : Fix niagara2 perf support...

login
register
mail settings
Submitter David Miller
Date Oct. 9, 2009, 7:51 a.m.
Message ID <20091009.005105.93644105.davem@davemloft.net>
Download mbox | patch
Permalink /patch/35579/
State Accepted
Delegated to: David Miller
Headers show

Comments

David Miller - Oct. 9, 2009, 7:51 a.m.
While testing today I discovered that the perf IRQ bits for
niagara-2 were wrong, fixes as follows and committed to sparc-2.6:

sparc64: Fix niagara2 perf IRQ bits.

Signed-off-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc/kernel/perf_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/sparc/kernel/perf_event.c b/arch/sparc/kernel/perf_event.c
index 04db927..fa5936e 100644
--- a/arch/sparc/kernel/perf_event.c
+++ b/arch/sparc/kernel/perf_event.c
@@ -437,7 +437,7 @@  static const struct sparc_pmu niagara2_pmu = {
 	.lower_shift	= 6,
 	.event_mask	= 0xfff,
 	.hv_bit		= 0x8,
-	.irq_bit	= 0x03,
+	.irq_bit	= 0x30,
 	.upper_nop	= 0x220,
 	.lower_nop	= 0x220,
 };