[Top] [All Lists]

Re: MIPS raw_local_irq_restore flags

To: Mikael Starvik <>
Subject: Re: MIPS raw_local_irq_restore flags
From: David Daney <>
Date: Thu, 11 Mar 2010 09:25:43 -0800
Cc: "" <>
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: 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>