Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645Ab2HYHSR (ORCPT ); Sat, 25 Aug 2012 03:18:17 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:45251 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753366Ab2HYHSG (ORCPT ); Sat, 25 Aug 2012 03:18:06 -0400 Date: Sat, 25 Aug 2012 08:17:56 +0100 From: Russell King - ARM Linux To: Bill Huang Cc: "'linux-tegra@vger.kernel.org'" , "'linux-kernel@vger.kernel.org'" , "'linux-arm-kernel@lists.infradead.org'" Subject: Re: Shutdown problem in SMP system happened on Tegra20 Message-ID: <20120825071755.GG18957@n2100.arm.linux.org.uk> References: <20120824182133.GB18957@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Content-Length: 1194 Lines: 26 On Sat, Aug 25, 2012 at 08:00:56AM +0800, Bill Huang wrote: > nvpublic > > So what you're asking for is a feature to do what CONFIG_PM_SLEEP_SMP does, but without > > CONFIG_PM_SLEEP_SMP enabled? > > Yeah pretty much, I'm actually asking should we take care of this since maybe not all platforms > will have this config enabled? > > > > Why not just ensure that CONFIG_PM_SLEEP_SMP is enabled if your platform requires that the lowest CPU > > number be the CPU dealing with reboot? > > Someday we will have it enabled, but before that we'll hit the issue, so you don't think > this should be taken care of? Thanks. Well, just enable CONFIG_PM_SLEEP_SMP then - it'll be far better than trying to implement something in the ARM code, especially as sysrq can be used for poweroff/reboot etc (which will run from atomic contexts where you can't switch to another CPU.) What you're asking for will make these callbacks fragile for other platforms. -- 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/