linux-mips
[Top] [All Lists]

Re: MIPS: return after handling coprocessor 2 exception

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: MIPS: return after handling coprocessor 2 exception
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Date: Fri, 18 Jun 2010 14:35:54 +0400
Cc: David Daney <ddaney@caviumnetworks.com>, Jesper Nilsson <jesper@jni.nu>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
In-reply-to: <20100618100053.GA4466@linux-mips.org>
Organization: NIISI RAN
References: <20100617132554.GB24162@jni.nu> <4C1A57AE.9080706@caviumnetworks.com> <4C1B263E.7070906@niisi.msk.ru> <20100618100053.GA4466@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
On 18.06.2010 14:00, Ralf Baechle wrote:
static int default_cu2_call(struct notifier_block *nfb, unsigned long action,
         void *data)
{
        ...

        return NOTIFY_OK | NOTIFY_STOP;
NOTIFY_STOP implies NOTIFY_OK, so
        return NOTIFY_STOP;
shall be enough.
}

The notifier list could also be used for example by perf

Or octeon cop2 handler that just sends NOTIFY_BAD for getting the same behavior.

Gleb.

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