x86: remove pda.h
authorBrian Gerst <brgerst@gmail.com>
Mon, 19 Jan 2009 00:52:25 +0000 (19:52 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 20 Jan 2009 03:29:20 +0000 (12:29 +0900)
Impact: cleanup

Signed-off-by: Brian Gerst <brgerst@gmail.com>
arch/x86/include/asm/pda.h [deleted file]
arch/x86/include/asm/pgtable_64.h
arch/x86/include/asm/smp.h
arch/x86/kernel/asm-offsets_64.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/process_64.c
arch/x86/kernel/traps.c

diff --git a/arch/x86/include/asm/pda.h b/arch/x86/include/asm/pda.h
deleted file mode 100644 (file)
index ba46416..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef _ASM_X86_PDA_H
-#define _ASM_X86_PDA_H
-
-#ifndef __ASSEMBLY__
-#include <linux/stddef.h>
-#include <linux/types.h>
-#include <linux/cache.h>
-#include <linux/threads.h>
-#include <asm/page.h>
-#include <asm/percpu.h>
-
-/* Per processor datastructure. %gs points to it while the kernel runs */
-struct x8664_pda {
-       unsigned long unused1;
-       unsigned long unused2;
-       unsigned long unused3;
-       unsigned long unused4;
-       int unused5;
-       unsigned int unused6;           /* 36 was cpunumber */
-       short in_bootmem;               /* pda lives in bootmem */
-} ____cacheline_aligned_in_smp;
-
-DECLARE_PER_CPU(struct x8664_pda, __pda);
-
-#define cpu_pda(cpu)           (&per_cpu(__pda, cpu))
-
-#define read_pda(field)                percpu_read(__pda.field)
-#define write_pda(field, val)  percpu_write(__pda.field, val)
-#define add_pda(field, val)    percpu_add(__pda.field, val)
-#define sub_pda(field, val)    percpu_sub(__pda.field, val)
-#define or_pda(field, val)     percpu_or(__pda.field, val)
-
-/* This is not atomic against other CPUs -- CPU preemption needs to be off */
-#define test_and_clear_bit_pda(bit, field)                             \
-       x86_test_and_clear_bit_percpu(bit, __pda.field)
-
-#endif
-
-#endif /* _ASM_X86_PDA_H */
index ba09289accaa0322c70fb580a40f83677a900c9f..1df9637dfda30b2ceefa503c5a7e493adeb6d490 100644 (file)
@@ -11,7 +11,6 @@
 #include <asm/processor.h>
 #include <linux/bitops.h>
 #include <linux/threads.h>
-#include <asm/pda.h>
 
 extern pud_t level3_kernel_pgt[512];
 extern pud_t level3_ident_pgt[512];
index 68636e767a9111ced389528a05c9d034bff6ae67..45ef8a1b9d7cb614b283548f4835309213699840 100644 (file)
@@ -15,7 +15,6 @@
 #  include <asm/io_apic.h>
 # endif
 #endif
-#include <asm/pda.h>
 #include <asm/thread_info.h>
 #include <asm/cpumask.h>
 
index 94f9c8b39d20c297a2a2862c2210a77cc7f2bac3..8793ab33e2c16406632513ecdc2febefe26c66a3 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/hardirq.h>
 #include <linux/suspend.h>
 #include <linux/kbuild.h>
-#include <asm/pda.h>
 #include <asm/processor.h>
 #include <asm/segment.h>
 #include <asm/thread_info.h>
index 098934e72a1653233fb9eb9d1b19c2b85f07f733..3887fcf6e519ece150be51dd7dedbcd12c4bad15 100644 (file)
@@ -30,7 +30,6 @@
 #include <asm/genapic.h>
 #endif
 
-#include <asm/pda.h>
 #include <asm/pgtable.h>
 #include <asm/processor.h>
 #include <asm/desc.h>
index 088bc9a0f82c6bf20a725b4bce52099c54a98403..c422eebb0c5856131f354a9bf194e9001b455d21 100644 (file)
@@ -47,7 +47,6 @@
 #include <asm/processor.h>
 #include <asm/i387.h>
 #include <asm/mmu_context.h>
-#include <asm/pda.h>
 #include <asm/prctl.h>
 #include <asm/desc.h>
 #include <asm/proto.h>
index 98c2d055284b32fb2ce6ff6776b9cb049c103ae0..ed5aee5f3fcc21ce994837f31d12ff74e15beef0 100644 (file)
@@ -59,7 +59,6 @@
 #ifdef CONFIG_X86_64
 #include <asm/pgalloc.h>
 #include <asm/proto.h>
-#include <asm/pda.h>
 #else
 #include <asm/processor-flags.h>
 #include <asm/arch_hooks.h>