aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/um_arch.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 17:50:58 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 15:13:00 -0400
commita5ed1ffa6c2480cdcf3f0aa945f0b8622fe4e90b (patch)
tree60bc11afebc2ede39683e3d08531856110872d5a /arch/um/kernel/um_arch.c
parent11100b1dfb6e9444d54d38e822753f59ee42a7e6 (diff)
uml: formatting fixes
Formatting fixes - style violations whitespace breakage emacs formatting comment removal 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/um_arch.c')
-rw-r--r--arch/um/kernel/um_arch.c51
1 files changed, 25 insertions, 26 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 89c6dba731f..299d75a41a7 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -63,8 +63,8 @@ struct cpuinfo_um boot_cpu_data = {
63 63
64unsigned long thread_saved_pc(struct task_struct *task) 64unsigned long thread_saved_pc(struct task_struct *task)
65{ 65{
66 return(os_process_pc(CHOOSE_MODE_PROC(thread_pid_tt, thread_pid_skas, 66 return os_process_pc(CHOOSE_MODE_PROC(thread_pid_tt, thread_pid_skas,
67 task))); 67 task));
68} 68}
69 69
70static int show_cpuinfo(struct seq_file *m, void *v) 70static int show_cpuinfo(struct seq_file *m, void *v)
@@ -86,7 +86,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
86 loops_per_jiffy/(500000/HZ), 86 loops_per_jiffy/(500000/HZ),
87 (loops_per_jiffy/(5000/HZ)) % 100); 87 (loops_per_jiffy/(5000/HZ)) % 100);
88 88
89 return(0); 89 return 0;
90} 90}
91 91
92static void *c_start(struct seq_file *m, loff_t *pos) 92static void *c_start(struct seq_file *m, loff_t *pos)
@@ -212,12 +212,12 @@ __uml_setup("debug", no_skas_debug_setup,
212#ifdef CONFIG_SMP 212#ifdef CONFIG_SMP
213static int __init uml_ncpus_setup(char *line, int *add) 213static int __init uml_ncpus_setup(char *line, int *add)
214{ 214{
215 if (!sscanf(line, "%d", &ncpus)) { 215 if (!sscanf(line, "%d", &ncpus)) {
216 printf("Couldn't parse [%s]\n", line); 216 printf("Couldn't parse [%s]\n", line);
217 return -1; 217 return -1;
218 } 218 }
219 219
220 return 0; 220 return 0;
221} 221}
222 222
223__uml_setup("ncpus=", uml_ncpus_setup, 223__uml_setup("ncpus=", uml_ncpus_setup,
@@ -234,7 +234,7 @@ static int force_tt = 0;
234static int __init mode_tt_setup(char *line, int *add) 234static int __init mode_tt_setup(char *line, int *add)
235{ 235{
236 force_tt = 1; 236 force_tt = 1;
237 return(0); 237 return 0;
238} 238}
239 239
240#else 240#else
@@ -245,7 +245,7 @@ static int __init mode_tt_setup(char *line, int *add)
245static int __init mode_tt_setup(char *line, int *add) 245static int __init mode_tt_setup(char *line, int *add)
246{ 246{
247 printf("CONFIG_MODE_TT disabled - 'mode=tt' ignored\n"); 247 printf("CONFIG_MODE_TT disabled - 'mode=tt' ignored\n");
248 return(0); 248 return 0;
249} 249}
250 250
251#else 251#else
@@ -256,7 +256,7 @@ static int __init mode_tt_setup(char *line, int *add)
256static int __init mode_tt_setup(char *line, int *add) 256static int __init mode_tt_setup(char *line, int *add)
257{ 257{
258 printf("CONFIG_MODE_SKAS disabled - 'mode=tt' redundant\n"); 258 printf("CONFIG_MODE_SKAS disabled - 'mode=tt' redundant\n");
259 return(0); 259 return 0;
260} 260}
261 261
262#endif 262#endif
@@ -274,16 +274,15 @@ int mode_tt = DEFAULT_TT;
274 274
275static int __init Usage(char *line, int *add) 275static int __init Usage(char *line, int *add)
276{ 276{
277 const char **p; 277 const char **p;
278 278
279 printf(usage_string, init_utsname()->release); 279 printf(usage_string, init_utsname()->release);
280 p = &__uml_help_start; 280 p = &__uml_help_start;
281 while (p < &__uml_help_end) { 281 while (p < &__uml_help_end) {
282 printf("%s", *p); 282 printf("%s", *p);
283 p++; 283 p++;
284 } 284 }
285 exit(0); 285 exit(0);
286
287 return 0; 286 return 0;
288} 287}
289 288
@@ -379,8 +378,8 @@ int __init linux_main(int argc, char **argv)
379 set_task_sizes_skas, &task_size); 378 set_task_sizes_skas, &task_size);
380 379
381 /* 380 /*
382 * Setting up handlers to 'sig_info' struct 381 * Setting up handlers to 'sig_info' struct
383 */ 382 */
384 os_fill_handlinfo(handlinfo_kern); 383 os_fill_handlinfo(handlinfo_kern);
385 384
386 brk_start = (unsigned long) sbrk(0); 385 brk_start = (unsigned long) sbrk(0);
@@ -407,7 +406,7 @@ int __init linux_main(int argc, char **argv)
407 argv1_begin = argv[1]; 406 argv1_begin = argv[1];
408 argv1_end = &argv[1][strlen(argv[1])]; 407 argv1_end = &argv[1][strlen(argv[1])];
409#endif 408#endif
410 409
411 highmem = 0; 410 highmem = 0;
412 iomem_size = (iomem_size + PAGE_SIZE - 1) & PAGE_MASK; 411 iomem_size = (iomem_size + PAGE_SIZE - 1) & PAGE_MASK;
413 max_physmem = get_kmem_end() - uml_physmem - iomem_size - MIN_VMALLOC; 412 max_physmem = get_kmem_end() - uml_physmem - iomem_size - MIN_VMALLOC;
@@ -449,12 +448,12 @@ int __init linux_main(int argc, char **argv)
449 printf("Kernel virtual memory size shrunk to %lu bytes\n", 448 printf("Kernel virtual memory size shrunk to %lu bytes\n",
450 virtmem_size); 449 virtmem_size);
451 450
452 uml_postsetup(); 451 uml_postsetup();
453 452
454 task_protections((unsigned long) &init_thread_info); 453 task_protections((unsigned long) &init_thread_info);
455 os_flush_stdout(); 454 os_flush_stdout();
456 455
457 return(CHOOSE_MODE(start_uml_tt(), start_uml_skas())); 456 return CHOOSE_MODE(start_uml_tt(), start_uml_skas());
458} 457}
459 458
460extern int uml_exitcode; 459extern int uml_exitcode;
@@ -467,7 +466,7 @@ static int panic_exit(struct notifier_block *self, unsigned long unused1,
467 bust_spinlocks(0); 466 bust_spinlocks(0);
468 uml_exitcode = 1; 467 uml_exitcode = 1;
469 machine_halt(); 468 machine_halt();
470 return(0); 469 return 0;
471} 470}
472 471
473static struct notifier_block panic_exit_notifier = { 472static struct notifier_block panic_exit_notifier = {
@@ -482,14 +481,14 @@ void __init setup_arch(char **cmdline_p)
482 &panic_exit_notifier); 481 &panic_exit_notifier);
483 paging_init(); 482 paging_init();
484 strlcpy(boot_command_line, command_line, COMMAND_LINE_SIZE); 483 strlcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
485 *cmdline_p = command_line; 484 *cmdline_p = command_line;
486 setup_hostinfo(); 485 setup_hostinfo();
487} 486}
488 487
489void __init check_bugs(void) 488void __init check_bugs(void)
490{ 489{
491 arch_check_bugs(); 490 arch_check_bugs();
492 os_check_bugs(); 491 os_check_bugs();
493} 492}
494 493
495void apply_alternatives(struct alt_instr *start, struct alt_instr *end) 494void apply_alternatives(struct alt_instr *start, struct alt_instr *end)