WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEN] Use cpumask macros to update numa n

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN] Use cpumask macros to update numa node masks.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Dec 2006 17:35:14 +0000
Delivery-date: Wed, 13 Dec 2006 09:41:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 65c3287306dbcfb809cc12a48111c4ca7ed7428f
# Parent  e080700efa56b7b31326aafc717ce65211382309
[XEN] Use cpumask macros to update numa node masks.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/numa.c        |    2 +-
 xen/include/asm-x86/numa.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r e080700efa56 -r 65c3287306db xen/arch/x86/numa.c
--- a/xen/arch/x86/numa.c       Wed Dec 13 10:23:53 2006 +0000
+++ b/xen/arch/x86/numa.c       Wed Dec 13 10:24:20 2006 +0000
@@ -214,7 +214,7 @@ void __init numa_initmem_init(unsigned l
 
 __cpuinit void numa_add_cpu(int cpu)
 {
-       set_bit(cpu, node_to_cpumask[cpu_to_node(cpu)].bits);
+       cpu_set(cpu, node_to_cpumask[cpu_to_node(cpu)]);
 } 
 
 void __cpuinit numa_set_node(int cpu, int node)
diff -r e080700efa56 -r 65c3287306db xen/include/asm-x86/numa.h
--- a/xen/include/asm-x86/numa.h        Wed Dec 13 10:23:53 2006 +0000
+++ b/xen/include/asm-x86/numa.h        Wed Dec 13 10:24:20 2006 +0000
@@ -37,7 +37,7 @@ extern void __init init_cpu_to_node(void
 
 static inline void clear_node_cpumask(int cpu)
 {
-       clear_bit(cpu, node_to_cpumask[cpu_to_node(cpu)].bits);
+       cpu_clear(cpu, node_to_cpumask[cpu_to_node(cpu)]);
 }
 
 /* Simple perfect hash to map physical addresses to node numbers */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN] Use cpumask macros to update numa node masks., Xen patchbot-unstable <=