Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751653AbaG3J0s (ORCPT ); Wed, 30 Jul 2014 05:26:48 -0400 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:57222 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750999AbaG3J0r (ORCPT ); Wed, 30 Jul 2014 05:26:47 -0400 Date: Wed, 30 Jul 2014 10:26:35 +0100 From: Russell King - ARM Linux To: Brian Norris Cc: Arnd Bergmann , Olof Johansson , Matt Porter , Christian Daudt , linux-arm-kernel@lists.infradead.org, Linux Kernel , devicetree@vger.kernel.org, Gregory Fong , Florian Fainelli , Marc Carino Subject: Re: [PATCH v8 01/11] ARM: brcmstb: add infrastructure for ARM-based Broadcom STB SoCs Message-ID: <20140730092635.GI30282@n2100.arm.linux.org.uk> References: <1405976886-27807-1-git-send-email-computersforpeace@gmail.com> <1405976886-27807-2-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1405976886-27807-2-git-send-email-computersforpeace@gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 21, 2014 at 02:07:56PM -0700, Brian Norris wrote: > +static DEFINE_SPINLOCK(boot_lock); > + > +static void brcmstb_secondary_init(unsigned int cpu) > +{ > + /* > + * Synchronise with the boot thread. > + */ > + spin_lock(&boot_lock); > + spin_unlock(&boot_lock); > +} > + > +static int brcmstb_boot_secondary(unsigned int cpu, struct task_struct *idle) > +{ > + /* > + * set synchronisation state between this boot processor > + * and the secondary one > + */ > + spin_lock(&boot_lock); > + > + /* Bring up power to the core if necessary */ > + if (brcmstb_cpu_get_power_state(cpu) == 0) > + brcmstb_cpu_power_on(cpu); > + > + brcmstb_cpu_boot(cpu); > + > + /* > + * now the secondary core is starting up let it run its > + * calibrations, then wait for it to finish > + */ > + spin_unlock(&boot_lock); I've just read through this code (because it caused my allmodconfig to break) and spotted this. What function does boot_lock perform here? Please, don't quote the comments (I know where the comments came from) but what I want to hear is your comments about why you decided to retain this. -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net. -- 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/