From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cnshjsmin03.cn.alcatel-lucent.com (unknown [211.144.215.47]) by ozlabs.org (Postfix) with ESMTP id 97A1FB7D0A for ; Thu, 1 Apr 2010 13:42:32 +1100 (EST) Message-ID: <4BB407F6.3070106@alcatel-lucent.com> Date: Thu, 01 Apr 2010 10:41:58 +0800 From: gshan MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: spin_lock_irqsave and multi-core References: <4BB3FE05.6040800@alcatel-lucent.com> <1270089545.7101.84.camel@pasglop> In-Reply-To: <1270089545.7101.84.camel@pasglop> Content-Type: text/html; charset=UTF-8 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Benjamin Herrenschmidt wrote:
On Thu, 2010-04-01 at 09:59 +0800, gshan wrote:
  
On multi-core system, spin_lock_irqsave() can stop all CPU cores 
receiving interrupts?
    

No.
  
Thanks a lot for your answer.
  
If the answer is no, what we can do to disable external interrupt for 
all CPU cores?
    

You don't :-)

Really, you generally don't. Why would you want to do that ?
  
One of my private driver need it. I don't know how to do it.
Cheers,
Ben.