linux-mips
[Top] [All Lists]

Re: [PATCH] oprofile: VR5500 performance counter driver

To: Mark Asselstine <mark.asselstine@windriver.com>
Subject: Re: [PATCH] oprofile: VR5500 performance counter driver
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 26 Feb 2009 17:49:07 +0000
Cc: linux-mips@linux-mips.org, oprofile-list@lists.sf.net
In-reply-to: <1235406394-2650-1-git-send-email-mark.asselstine@windriver.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1235406394-2650-1-git-send-email-mark.asselstine@windriver.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.18 (2008-05-17)
On Mon, Feb 23, 2009 at 11:26:34AM -0500, Mark Asselstine wrote:

> +static int vr5500_perfcount_handler(void)
> +{
> +     unsigned int control;
> +     unsigned int counter;
> +     int handled = IRQ_NONE;
> +     unsigned int counters = NUM_COUNTERS;
> +
> +     if (cpu_has_mips_r2 && !(read_c0_cause() & (1 << 26)))
> +             return handled;

The Vr5500 is no R2 processor so these two lines are dead code.

  Ralf

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