aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/calibrate.c9
-rw-r--r--init/do_mounts.c3
-rw-r--r--init/initramfs.c5
-rw-r--r--init/main.c2
4 files changed, 6 insertions, 13 deletions
diff --git a/init/calibrate.c b/init/calibrate.c
index 2d3d73bd4ce1..ecb3822d4f70 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -7,8 +7,7 @@
7#include <linux/jiffies.h> 7#include <linux/jiffies.h>
8#include <linux/delay.h> 8#include <linux/delay.h>
9#include <linux/init.h> 9#include <linux/init.h>
10 10#include <linux/timex.h>
11#include <asm/timex.h>
12 11
13unsigned long preset_lpj; 12unsigned long preset_lpj;
14static int __init lpj_setup(char *str) 13static int __init lpj_setup(char *str)
@@ -29,7 +28,7 @@ __setup("lpj=", lpj_setup);
29#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100)) 28#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100))
30#define MAX_DIRECT_CALIBRATION_RETRIES 5 29#define MAX_DIRECT_CALIBRATION_RETRIES 5
31 30
32static unsigned long __devinit calibrate_delay_direct(void) 31static unsigned long __cpuinit calibrate_delay_direct(void)
33{ 32{
34 unsigned long pre_start, start, post_start; 33 unsigned long pre_start, start, post_start;
35 unsigned long pre_end, end, post_end; 34 unsigned long pre_end, end, post_end;
@@ -102,7 +101,7 @@ static unsigned long __devinit calibrate_delay_direct(void)
102 return 0; 101 return 0;
103} 102}
104#else 103#else
105static unsigned long __devinit calibrate_delay_direct(void) {return 0;} 104static unsigned long __cpuinit calibrate_delay_direct(void) {return 0;}
106#endif 105#endif
107 106
108/* 107/*
@@ -112,7 +111,7 @@ static unsigned long __devinit calibrate_delay_direct(void) {return 0;}
112 */ 111 */
113#define LPS_PREC 8 112#define LPS_PREC 8
114 113
115void __devinit calibrate_delay(void) 114void __cpuinit calibrate_delay(void)
116{ 115{
117 unsigned long ticks, loopbit; 116 unsigned long ticks, loopbit;
118 int lps_precision = LPS_PREC; 117 int lps_precision = LPS_PREC;
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 1161dfd7b0d3..f86573126f83 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -11,6 +11,7 @@
11#include <linux/mount.h> 11#include <linux/mount.h>
12#include <linux/device.h> 12#include <linux/device.h>
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/fs.h>
14 15
15#include <linux/nfs_fs.h> 16#include <linux/nfs_fs.h>
16#include <linux/nfs_fs_sb.h> 17#include <linux/nfs_fs_sb.h>
@@ -18,8 +19,6 @@
18 19
19#include "do_mounts.h" 20#include "do_mounts.h"
20 21
21extern int get_filesystem_list(char * buf);
22
23int __initdata rd_doload; /* 1 = load RAM disk, 0 = don't load */ 22int __initdata rd_doload; /* 1 = load RAM disk, 0 = don't load */
24 23
25int root_mountflags = MS_RDONLY | MS_SILENT; 24int root_mountflags = MS_RDONLY | MS_SILENT;
diff --git a/init/initramfs.c b/init/initramfs.c
index 1db02a0025db..d53fee8d8604 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -503,7 +503,6 @@ static int __init retain_initrd_param(char *str)
503__setup("retain_initrd", retain_initrd_param); 503__setup("retain_initrd", retain_initrd_param);
504 504
505extern char __initramfs_start[], __initramfs_end[]; 505extern char __initramfs_start[], __initramfs_end[];
506#ifdef CONFIG_BLK_DEV_INITRD
507#include <linux/initrd.h> 506#include <linux/initrd.h>
508#include <linux/kexec.h> 507#include <linux/kexec.h>
509 508
@@ -539,15 +538,12 @@ skip:
539 initrd_end = 0; 538 initrd_end = 0;
540} 539}
541 540
542#endif
543
544static int __init populate_rootfs(void) 541static int __init populate_rootfs(void)
545{ 542{
546 char *err = unpack_to_rootfs(__initramfs_start, 543 char *err = unpack_to_rootfs(__initramfs_start,
547 __initramfs_end - __initramfs_start, 0); 544 __initramfs_end - __initramfs_start, 0);
548 if (err) 545 if (err)
549 panic(err); 546 panic(err);
550#ifdef CONFIG_BLK_DEV_INITRD
551 if (initrd_start) { 547 if (initrd_start) {
552#ifdef CONFIG_BLK_DEV_RAM 548#ifdef CONFIG_BLK_DEV_RAM
553 int fd; 549 int fd;
@@ -579,7 +575,6 @@ static int __init populate_rootfs(void)
579 free_initrd(); 575 free_initrd();
580#endif 576#endif
581 } 577 }
582#endif
583 return 0; 578 return 0;
584} 579}
585rootfs_initcall(populate_rootfs); 580rootfs_initcall(populate_rootfs);
diff --git a/init/main.c b/init/main.c
index cb81ed116f62..c691f5f7fc27 100644
--- a/init/main.c
+++ b/init/main.c
@@ -57,6 +57,7 @@
57#include <linux/device.h> 57#include <linux/device.h>
58#include <linux/kthread.h> 58#include <linux/kthread.h>
59#include <linux/sched.h> 59#include <linux/sched.h>
60#include <linux/signal.h>
60 61
61#include <asm/io.h> 62#include <asm/io.h>
62#include <asm/bugs.h> 63#include <asm/bugs.h>
@@ -83,7 +84,6 @@ extern void init_IRQ(void);
83extern void fork_init(unsigned long); 84extern void fork_init(unsigned long);
84extern void mca_init(void); 85extern void mca_init(void);
85extern void sbus_init(void); 86extern void sbus_init(void);
86extern void signals_init(void);
87extern void pidhash_init(void); 87extern void pidhash_init(void);
88extern void pidmap_init(void); 88extern void pidmap_init(void);
89extern void prio_tree_init(void); 89extern void prio_tree_init(void);