linux-mips
[Top] [All Lists]

Re: MIPS raw_local_irq_restore flags

To: Mikael Starvik <mikael.starvik@axis.com>
Subject: Re: MIPS raw_local_irq_restore flags
From: David Daney <ddaney@caviumnetworks.com>
Date: Thu, 11 Mar 2010 09:25:43 -0800
Cc: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
In-reply-to: <4BEA3FF3CAA35E408EA55C7BE2E61D0546AC862322@xmail3.se.axis.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4BEA3FF3CAA35E408EA55C7BE2E61D0546AC862322@xmail3.se.axis.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3
On 03/11/2010 06:59 AM, Mikael Starvik wrote:
For the common case CONFIG_CPU_MIPSR2&&  CONFIG_IRQ_CPU 
raw_local_irq_restore_flags is defined as:

"       beqz    \\flags, 1f                                     \n"
"       di                                                      \n"
"       ei                                                      \n"
"1:                                                             \n"

Doesn't this imply that you can't do recursive local_irq_save() (with different 
locks ofcourse)?


No. In fact local_irq_save() is intentionally designed to be used 'recursively'.

David Daney

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