Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753053Ab3C0SOy (ORCPT ); Wed, 27 Mar 2013 14:14:54 -0400 Received: from smtp.citrix.com ([66.165.176.89]:19091 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159Ab3C0SOx (ORCPT ); Wed, 27 Mar 2013 14:14:53 -0400 X-IronPort-AV: E=Sophos;i="4.84,920,1355097600"; d="scan'208";a="15961903" Date: Wed, 27 Mar 2013 18:14:48 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Arnd Bergmann CC: Rob Herring , Stefano Stabellini , Will Deacon , "xen-devel@lists.xensource.com" , "linux@arm.linux.org.uk" , Marc Zyngier , "nico@linaro.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v3] [RFC] arm: use PSCI if available In-Reply-To: <201303271803.45420.arnd@arndb.de> Message-ID: References: <1364388639-11210-1-git-send-email-stefano.stabellini@eu.citrix.com> <51533037.5060004@gmail.com> <201303271803.45420.arnd@arndb.de> User-Agent: Alpine 2.02 (DEB 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: 1022 Lines: 28 On Wed, 27 Mar 2013, Arnd Bergmann wrote: > On Wednesday 27 March 2013, Rob Herring wrote: > > No, I was thinking in the case of Xen and mach-virt, you would not set > > mdesc->smp. So you would have something like this: > > > > if (mdesc->smp) > > smp_set_ops(mdesc->smp); > > else > > smp_set_ops(&psci_smp_ops); > > The case that Stefano is interested in if obviously other platforms > that can either run as Dom0 under Xen with psci_smp_ops or natively > with their own smp_ops. A similar case would be a platform that > may implement psci using smc when run in secure mode but provide > its own smp_ops when run natively. That's correct. > In both cases, it would be simpler to use psci if available but > fall back to mdesc->smp otherwise. I agree. -- 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/