From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 152481A00B0 for ; Fri, 20 Mar 2015 10:08:57 +1100 (AEDT) Date: Fri, 20 Mar 2015 10:08:48 +1100 From: Paul Mackerras To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH] powerpc: Export __spin_yield Message-ID: <20150319230848.GB31148@iris.ozlabs.ibm.com> References: <54EE5989.7010800@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <54EE5989.7010800@linux.vnet.ibm.com> Cc: "Suresh E. Warrier" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Feb 25, 2015 at 05:23:53PM -0600, Suresh E. Warrier wrote: > Export __spin_yield so that the arch_spin_unlock() function can > be invoked from a module. This will be required for modules where > we want to take a lock that is also is acquired in hypervisor > real mode. Because we want to avoid running any lockdep code > (which may not be safe in real mode), this lock needs to be > an arch_spinlock_t instead of a normal spinlock. > > Signed-off-by: Suresh Warrier Acked-by: Paul Mackerras