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:12:54 +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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GOhtDbYC+78PI2L4XxmCn6fNUg2F9QmGJABI/yEyGAri9iE5VnR3VTng12Bb329ke/Hztfi1gES/PJznsu/1lvCUbW+wfEIOZty4gA6SXoaF6+4jrfVcoQYiWMCozrPzN5T3c/vv/u2kpnSvMWr7GRBsDY8RCKHF25LI5Kdmh6I=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HR7ks57uvfkbEx4RN8ItcEVI7mgmankiF6WhX14IWVEtpX7HLeb3we4W5Z5n2NWS/pe+eUM3Xp2cKLb98qE70pOJsF5agBOyb+PxjuqKIuNcgRsxeIJrHreC0GjvFELWfMyEI/Z973WsvndUD/EjiFye6hgTeXkv5dPwH7jROyo=
In-reply-to: <5861a7880707300007s6269fd4ft16836a3f5dbf7028@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <5861a7880707300007s6269fd4ft16836a3f5dbf7028@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Sorry, forgot to add my sign. resend it.

Signed-off-by:  Dajie Tan <jiankemeng@gmail.com>
---

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>