aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-02-21 10:30:10 -0500
committerUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-05-30 04:30:05 -0400
commit8ff7f2a46bd8831e1f1f2a694ec13921720180b7 (patch)
tree61b64eea438d94ce06e3609e2dc6e539029b6ffd /arch/arm/kernel
parent916941b2bfd9c4a8b66855f198ae16c3f51ef570 (diff)
There is no need to have BOOT_PARAMS_SIZE known outside of atags.c
atags.c was the only user of KEXEC_BOOT_PARAMS_SIZE and kexec.h was only included to get that definition. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Acked-by: Uli Luckas <u.luckas@road.de>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/atags.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/kernel/atags.c b/arch/arm/kernel/atags.c
index 64c420805e6f..56fef9a05504 100644
--- a/arch/arm/kernel/atags.c
+++ b/arch/arm/kernel/atags.c
@@ -1,5 +1,4 @@
1#include <linux/slab.h> 1#include <linux/slab.h>
2#include <linux/kexec.h>
3#include <linux/proc_fs.h> 2#include <linux/proc_fs.h>
4#include <asm/setup.h> 3#include <asm/setup.h>
5#include <asm/types.h> 4#include <asm/types.h>
@@ -42,14 +41,14 @@ create_proc_entries(void)
42 return 0; 41 return 0;
43} 42}
44 43
45 44#define BOOT_PARAMS_SIZE 1536
46static char __initdata atags_copy_buf[KEXEC_BOOT_PARAMS_SIZE]; 45static char __initdata atags_copy_buf[BOOT_PARAMS_SIZE];
47static char __initdata *atags_copy; 46static char __initdata *atags_copy;
48 47
49void __init save_atags(const struct tag *tags) 48void __init save_atags(const struct tag *tags)
50{ 49{
51 atags_copy = atags_copy_buf; 50 atags_copy = atags_copy_buf;
52 memcpy(atags_copy, tags, KEXEC_BOOT_PARAMS_SIZE); 51 memcpy(atags_copy, tags, sizeof(atags_copy_buf));
53} 52}
54 53
55 54