summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-07-28 21:15:30 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-28 21:45:58 -0700
commita940199f206dcf51c65fae27e2ce412f2c5a2b22 (patch)
treeada838ac347214d20fcb6003cba1c4938dc7ebae /init/main.c
parentde04f3220b9789cc40fd6b1d151dfa0a7e3b03b9 (diff)
downloadop-kernel-dev-a940199f206dcf51c65fae27e2ce412f2c5a2b22.zip
op-kernel-dev-a940199f206dcf51c65fae27e2ce412f2c5a2b22.tar.gz
[PATCH] x86_64: Some cleanup in setup64.c
Minor cleanup. Move things into their include files, remove obsolete includes, fix indentation, remove obsolete special cases etc. I also added the per cpu section to asm-generic/sections.h and fixed init/main.c to use it. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c
index b5e421e..c9c311c 100644
--- a/init/main.c
+++ b/init/main.c
@@ -51,6 +51,7 @@
#include <asm/io.h>
#include <asm/bugs.h>
#include <asm/setup.h>
+#include <asm/sections.h>
/*
* This is one of the first .c files built. Error out early
@@ -323,8 +324,6 @@ static void __init setup_per_cpu_areas(void)
{
unsigned long size, i;
char *ptr;
- /* Created by linker magic */
- extern char __per_cpu_start[], __per_cpu_end[];
/* Copy section for each CPU (we discard the original) */
size = ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES);
OpenPOWER on IntegriCloud