aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 17:50:59 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:13:00 -0400
commitb4ffb6ad8d8477b561377ca150bbbfc0db02da54 (patch)
tree1f10ef5f1b2afc3ea4e991f473f5e5bfe497f608 /arch/um/kernel
parenta5ed1ffa6c2480cdcf3f0aa945f0b8622fe4e90b (diff)
uml: host_info tidying
Move the host_info string from util.c to um_arch.c, where it is actually initialized and used. Also document its lack of locking. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/um_arch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 299d75a41a7f..613fb082bbd5 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -17,6 +17,7 @@
17#include "linux/seq_file.h" 17#include "linux/seq_file.h"
18#include "linux/delay.h" 18#include "linux/delay.h"
19#include "linux/module.h" 19#include "linux/module.h"
20#include "linux/utsname.h"
20#include "asm/page.h" 21#include "asm/page.h"
21#include "asm/pgtable.h" 22#include "asm/pgtable.h"
22#include "asm/ptrace.h" 23#include "asm/ptrace.h"
@@ -67,6 +68,9 @@ unsigned long thread_saved_pc(struct task_struct *task)
67 task)); 68 task));
68} 69}
69 70
71/* Changed in setup_arch, which is called in early boot */
72static char host_info[(__NEW_UTS_LEN + 1) * 5];
73
70static int show_cpuinfo(struct seq_file *m, void *v) 74static int show_cpuinfo(struct seq_file *m, void *v)
71{ 75{
72 int index = 0; 76 int index = 0;
@@ -482,7 +486,7 @@ void __init setup_arch(char **cmdline_p)
482 paging_init(); 486 paging_init();
483 strlcpy(boot_command_line, command_line, COMMAND_LINE_SIZE); 487 strlcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
484 *cmdline_p = command_line; 488 *cmdline_p = command_line;
485 setup_hostinfo(); 489 setup_hostinfo(host_info, sizeof host_info);
486} 490}
487 491
488void __init check_bugs(void) 492void __init check_bugs(void)