Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754224Ab3JDTvi (ORCPT ); Fri, 4 Oct 2013 15:51:38 -0400 Received: from mail-qa0-f45.google.com ([209.85.216.45]:45553 "EHLO mail-qa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754048Ab3JDTvg (ORCPT ); Fri, 4 Oct 2013 15:51:36 -0400 Date: Fri, 4 Oct 2013 15:51:31 -0400 (EDT) From: Nicolas Pitre To: Dave Martin cc: Vyacheslav Tyrtov , Mark Rutland , devicetree@vger.kernel.org, Kukjin Kim , Russell King , Daniel Lezcano , Pawel Moll , Ian Campbell , Stephen Warren , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-samsung-soc@vger.kernel.org, Rob Landley , Ben Dooks , Tarek Dakhran , Thomas Gleixner , Naour Romain , Mike Turquette , linux-arm-kernel@lists.infradead.org, Heiko Stuebner Subject: Re: [PATCH 3/6] ARM: EXYNOS: add Exynos Dual Cluster Support In-Reply-To: <20131002125458.GA3407@localhost.localdomain> Message-ID: References: <1380644227-12244-1-git-send-email-v.tyrtov@samsung.com> <1380644227-12244-4-git-send-email-v.tyrtov@samsung.com> <20131002125458.GA3407@localhost.localdomain> User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 34 On Wed, 2 Oct 2013, Dave Martin wrote: > On Tue, Oct 01, 2013 at 08:17:04PM +0400, Vyacheslav Tyrtov wrote: > > +static int exynos_power_up(unsigned int cpu, unsigned int cluster) > > +{ > > + int ret; > > + local_irq_disable(); > > Should there be a local_fiq_disable() here also? No. In fact this is paired with > > + arch_spin_lock(&exynos_lock); to create the equivalent of a arch_spin_lock_irq(). And the reason is: /* * We can't use regular spinlocks. In the switcher case, it is possible * for an outbound CPU to call power_down() after its inbound counterpart * is already live using the same logical CPU number which trips lockdep * debugging. */ Otherwise we simply would have used spin_lock_irq(). No FIQs are supposed to ever race with this code. Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/