From patchwork Thu Jul 25 15:29:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 18580 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DCE8325E19 for ; Thu, 25 Jul 2013 15:29:16 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oz10sf775290veb.7 for ; Thu, 25 Jul 2013 08:29:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=o2dnZJqdSbWYfACRfYB7eDYdD7tQz5aIyuoIPMuB9UA=; b=YnWi4xHjcqR7AntJZ7gVbhCKc/FN9qgpsNsG52Z6ee8xwCDVE2hK3Uc95FgNBR2wi6 XcCFU8tv9dDUa43jI15uKV9i9lh8deHffH4qVO9GmkwcbjA961+Xn85X2USk3Sp9aDux xIqOns9pLqJuKfmsDi6xQxNuGg89EcyVM+SKaGIy+/95XJ2zOBXIe9dT04SBWkJIYUEl gZTK/qlqt56FMJwx+rTlq9idTjjBqOz/Aq3oAStAqV6YyLJn0KyMwa3CcaRsXcJs/Soe 5JtGMBK4QpPnrbtL6aTAmzL7Nog8MbraUPkb/M0lyXh3XWaOXix4YrZKBI60InbnS/IK ZY9g== X-Received: by 10.236.124.78 with SMTP id w54mr22597891yhh.44.1374766156014; Thu, 25 Jul 2013 08:29:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.38 with SMTP id or6ls644639qeb.7.gmail; Thu, 25 Jul 2013 08:29:15 -0700 (PDT) X-Received: by 10.220.205.67 with SMTP id fp3mr870605vcb.43.1374766155916; Thu, 25 Jul 2013 08:29:15 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id ya5si12523025vec.57.2013.07.25.08.29.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Jul 2013 08:29:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id 14so562603vea.15 for ; Thu, 25 Jul 2013 08:29:15 -0700 (PDT) X-Received: by 10.220.203.197 with SMTP id fj5mr878546vcb.60.1374766155833; Thu, 25 Jul 2013 08:29:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp83074veb; Thu, 25 Jul 2013 08:29:15 -0700 (PDT) X-Received: by 10.180.77.74 with SMTP id q10mr2498687wiw.28.1374766154761; Thu, 25 Jul 2013 08:29:14 -0700 (PDT) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by mx.google.com with ESMTPS id kz2si18883885wjb.10.2013.07.25.08.29.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Jul 2013 08:29:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.173 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.212.173; Received: by mail-wi0-f173.google.com with SMTP id hq4so5774923wib.12 for ; Thu, 25 Jul 2013 08:29:14 -0700 (PDT) X-Received: by 10.194.237.38 with SMTP id uz6mr31355563wjc.73.1374766154221; Thu, 25 Jul 2013 08:29:14 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id l2sm4456588wif.8.2013.07.25.08.29.12 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Jul 2013 08:29:13 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: ian.campbell@citrix.com, Stefano.Stabellini@eu.citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH] xen/arm: Clean up identify processor call for secondary cpus Date: Thu, 25 Jul 2013 16:29:10 +0100 Message-Id: <1374766150-534-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmhyNxL545OaT1TSK1VSdWqybqOVHDUQdpQ+dSwKfppYYVa2eJIFZIDJGpyh8apmwZf1HgI X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The smp_processor_id() is set at the beginning of start_secondary. We don't need to compute ourself the offset of the cpu data. Signed-off-by: Julien Grall --- xen/arch/arm/smpboot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index 5895178..872cc25 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -137,15 +137,12 @@ void __cpuinit start_secondary(unsigned long boot_phys_offset, unsigned long fdt_paddr, unsigned long cpuid) { - struct cpuinfo_arm *c = cpu_data + cpuid; - memset(get_cpu_info(), 0, sizeof (struct cpu_info)); /* TODO: handle boards where CPUIDs are not contiguous */ set_processor_id(cpuid); - *c = boot_cpu_data; - identify_cpu(c); + identify_cpu(¤t_cpu_data); init_traps();