From: Jan Beulich Date: Wed, 11 Jan 2006 21:47:07 +0000 (+0100) Subject: [PATCH] x86_64: don't copy command line twice X-Git-Tag: v2.6.16-rc1~286 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=256ddb01ebdcb065f81487fff00be833192d8764;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: don't copy command line twice ... reducing the amount of changes Xen has to do. Signed-Off-By: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index a5ebd03ecbd..cc25fa6bc97 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -277,10 +277,6 @@ static __init void parse_cmdline_early (char ** cmdline_p) int len = 0; int userdef = 0; - /* Save unparsed command line copy for /proc/cmdline */ - memcpy(saved_command_line, COMMAND_LINE, COMMAND_LINE_SIZE); - saved_command_line[COMMAND_LINE_SIZE-1] = '\0'; - for (;;) { if (c != ' ') goto next_char;