public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: remove never used nodenumer in pda
@ 2008-02-17  7:02 Yinghai Lu
  2008-02-17 14:03 ` Thomas Gleixner
  2008-02-18 12:23 ` Andi Kleen
  0 siblings, 2 replies; 9+ messages in thread
From: Yinghai Lu @ 2008-02-17  7:02 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andrew Morton, Linux Kernel Mailing List

we don't need copy too. already have x86_cpu_to_node_map

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index 1aecc65..69b33e3 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -546,8 +546,6 @@ void __cpuinit numa_set_node(int cpu, int node)
 {
 	int *cpu_to_node_map = x86_cpu_to_node_map_early_ptr;
 
-	cpu_pda(cpu)->nodenumber = node;
-
 	if(cpu_to_node_map)
 		cpu_to_node_map[cpu] = node;
 	else if(per_cpu_offset(cpu))
diff --git a/include/asm-x86/pda.h b/include/asm-x86/pda.h
index c0305bf..d9dc209 100644
--- a/include/asm-x86/pda.h
+++ b/include/asm-x86/pda.h
@@ -22,7 +22,6 @@ struct x8664_pda {
 					   offset 40!!! */
 #endif
 	char *irqstackptr;
-	unsigned int nodenumber;	/* number of current node */
 	unsigned int __softirq_pending;
 	unsigned int __nmi_count;	/* number of NMI on this CPUs */
 	short mmu_state;

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-19 21:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-17  7:02 [PATCH] x86_64: remove never used nodenumer in pda Yinghai Lu
2008-02-17 14:03 ` Thomas Gleixner
2008-02-18 12:23 ` Andi Kleen
2008-02-18 20:16   ` Yinghai Lu
2008-02-19 15:48   ` Mike Travis
2008-02-19 18:08     ` Andi Kleen
2008-02-19 18:32       ` Mike Travis
2008-02-19 20:59         ` Andi Kleen
2008-02-19 21:37           ` Mike Travis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox