From: Ian Campbell Subject: Re: [PATCH v2 1/4] xen: move XEN_SYSCTL_physinfo, XEN_SYSCTL_numainfo and XEN_SYSCTL_topologyinfo to common code Date: Thu, 24 Jan 2013 17:37:38 +0000 Message-ID: <1359049058.32057.37.camel@zakaz.uk.xensource.com> References: <1358362736-2870-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1358362736-2870-1-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-01-16 at 18:58 +0000, Stefano Stabellini wrote: > @ -93,9 +93,9 @@ int __init init_xen_time(void) > if ( (READ_CP32(ID_PFR1) & ID_PFR1_GT_MASK) != ID_PFR1_GT_v1 ) > panic("CPU does not support the Generic Timer v1 interface.\n"); > > - cntfrq = READ_CP32(CNTFRQ); > + cpu_khz = READ_CP32(CNTFRQ) / 1000; Does the loss of precision here matter in practice? Would we be better off sticking with cntfrq and doing the divide in arch_do_physinfo? > diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h > index 4ed5df6..96b36c2 100644 > --- a/xen/include/asm-arm/mm.h > +++ b/xen/include/asm-arm/mm.h > @@ -136,6 +136,9 @@ extern unsigned long frametable_base_mfn; > > extern unsigned long max_page; > extern unsigned long total_pages; > +/* XXX: implement NUMA support */ > +#define node_spanned_pages(nid) (total_pages) > +#define __node_distance(a, b) (20) Please put these in asm-arm/numa.h