linux-mips
[Top] [All Lists]

[PATCH] Fix rm9000 performance counter handler

To: Ralf <ralf@linux-mips.org>
Subject: [PATCH] Fix rm9000 performance counter handler
From: "Dajie Tan" <jiankemeng@gmail.com>
Date: Mon, 30 Jul 2007 11:07:42 +0400
Cc: linux-mips@linux-mips.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=fohjyq1VikuAWIEjlMEPd8Lu46EisrlGT08Pe3yNH0/OzfsiEJzIiTWj9HziOPOtzA0IZISP5Or1x3VPHCLdkqAaSu0sgnad115/kqkJWnplfFgWfYhJ8wsD7pq7xsb2OLAsNBlYLdmKs/Ki54nt/fBBPmkZ2isPwhaBzm6+giM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=mM+QMlQIFHbi7WJmrTzB8C8MM/CFvoCt6fdhyyVk3fs4siTiuT9UAWnMd8DJZGC7G76XhCHbYrEYs98v9lwBN/ev25XDaUDmgnIdSMzTgY9K4fRCM1wztOZqhRpDX/bpqtChfy8FCZhjYwWE1nV0KK5zVJBSegHY4cR/Ip3TKpk=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The new type of irq handler remove a parameter (struct pt_regs *),but
someone forgot to supply it.

Signed-off-by:
---

diff --git a/arch/mips/oprofile/op_model_rm9000.c
b/arch/mips/oprofile/op_model_rm9000.c
index 7dc9bf6..98b5257 100644
--- a/arch/mips/oprofile/op_model_rm9000.c
+++ b/arch/mips/oprofile/op_model_rm9000.c
@@ -85,6 +85,7 @@ static irqreturn_t rm9000_perfcount_handler(int irq,
void * dev_id)
        unsigned int control = read_c0_perfcontrol();
        uint32_t counter1, counter2;
        uint64_t counters;
+       struct pt_regs *regs = get_irq_regs();

        /*
         * RM9000 combines two 32-bit performance counters into a single

<Prev in Thread] Current Thread [Next in Thread>