From patchwork Thu Feb 8 19:22:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 127735 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1793943ljc; Thu, 8 Feb 2018 11:24:35 -0800 (PST) X-Google-Smtp-Source: AH8x226EbiiWvMnEI0CpLYXJ7JyqSC5Rimi+kRKkC5dTmJq7wESqN1vl2FkRPTFFHjBzLDFo+yWg X-Received: by 10.36.1.70 with SMTP id 67mr312819itk.104.1518117874563; Thu, 08 Feb 2018 11:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518117874; cv=none; d=google.com; s=arc-20160816; b=Dh0RfjE0Ndhb6VZGUsIxgS+yE61awXyP+Co66c/SYH9WOVHuXJYJTZ5MTOzK1G2AFC sofdKPsxD9o5v3JZ6kgX2T9HJibm3I28gny/Gc4vjraAUGZfI3D/Cr1eSEWtiHB1d1eC Ax4ORzjgtxhI2giwCXNZgqMfXUnGQvKEZYP22gWQf4QPJURoK1BJpxkoOSytYMLIM0v3 +tDtGCuQnBfp2NHMNA2Gnarbn4tOOQhZFIM+8AW8hjHjHnds0rS1ev66OTFzZgrED6rR zp+nMkoOgf8dv9v/9CqrLqiwmGBvhQ7vMAV+Ym3LUU8lXcseTbm7kMXNLT/dJVby6gnS +DdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=aoXQzl5RdhkDF9mvURsznxl5SFlPet+t5EkJBoZVP/I=; b=OdYXvbEWQOuS8G3gZ3ok5zHav8k/+Ugxv+bU3rtVXa9Ipl8SYFxqnMIqxEhh5KaNko f1I+a8U8UU4gnHtgoEcO9Uh+h8VYLEQl10pMwr+BNXitsaeMIOEF5zypQ+kCdNXmBQuM ND9h3wnqBV3UVXKlHXPJoGMAET7gK+b0LEr94aZ3j1hsdjNVZspyjJafbLSxuVUGwEvV fhUk4LC6mrS7O3ZP2aGqBkL5WEsL8YpLN82BJZdCWqc2o0j6ZD573gLqLFWp3epfv3sf WsXNKmbl95sSUJtyl6QnYO5dVoshePDo1qbsEikIag0RgH22ilB+92n97PNfRDZswBuj XYZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id t189si481907iod.24.2018.02.08.11.24.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 11:24:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejrmI-0006aW-AX; Thu, 08 Feb 2018 19:22:38 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejrmH-0006RT-0f for xen-devel@lists.xen.org; Thu, 08 Feb 2018 19:22:37 +0000 X-Inumbo-ID: 89138e1f-0d05-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 89138e1f-0d05-11e8-b9b1-635ca7ef6cff; Thu, 08 Feb 2018 19:23:26 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 49AC51435; Thu, 8 Feb 2018 11:22:30 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3A7D93F24D; Thu, 8 Feb 2018 11:22:29 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 8 Feb 2018 19:22:02 +0000 Message-Id: <20180208192203.9556-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180208192203.9556-1-julien.grall@arm.com> References: <20180208192203.9556-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v2 14/15] xen/arm: psci: Consolidate PSCI version print X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Xen is printing the same way the PSCI version for 0.1, 0.2 and later. The only different is the former is hardcoded. Furthermore PSCI is now used for other things than SMP bring up. So only print the PSCI version in psci_init. Signed-off-by: Julien Grall Reviewed-by: Volodymyr Babchuk --- Changes in v2: - Patch added --- xen/arch/arm/psci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c index bc7b2260e8..7a8cf54e6d 100644 --- a/xen/arch/arm/psci.c +++ b/xen/arch/arm/psci.c @@ -136,8 +136,6 @@ int __init psci_init_0_1(void) psci_ver = PSCI_VERSION(0, 1); - printk(XENLOG_INFO "Using PSCI-0.1 for SMP bringup\n"); - return 0; } @@ -183,9 +181,6 @@ int __init psci_init_0_2(void) psci_cpu_on_nr = PSCI_0_2_FN_NATIVE(CPU_ON); - printk(XENLOG_INFO "Using PSCI-%u.%u for SMP bringup\n", - PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver)); - return 0; } @@ -205,6 +200,9 @@ int __init psci_init(void) psci_init_smccc(); + printk(XENLOG_INFO "Using PSCI v%u.%u\n", + PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver)); + return 0; }