diff options
Diffstat (limited to 'init')
| -rw-r--r-- | init/calibrate.c | 9 | ||||
| -rw-r--r-- | init/do_mounts.c | 3 | ||||
| -rw-r--r-- | init/initramfs.c | 5 | ||||
| -rw-r--r-- | init/main.c | 2 |
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 | ||
| 13 | unsigned long preset_lpj; | 12 | unsigned long preset_lpj; |
| 14 | static int __init lpj_setup(char *str) | 13 | static 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 | ||
| 32 | static unsigned long __devinit calibrate_delay_direct(void) | 31 | static 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 |
| 105 | static unsigned long __devinit calibrate_delay_direct(void) {return 0;} | 104 | static 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 | ||
| 115 | void __devinit calibrate_delay(void) | 114 | void __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 | ||
| 21 | extern int get_filesystem_list(char * buf); | ||
| 22 | |||
| 23 | int __initdata rd_doload; /* 1 = load RAM disk, 0 = don't load */ | 22 | int __initdata rd_doload; /* 1 = load RAM disk, 0 = don't load */ |
| 24 | 23 | ||
| 25 | int root_mountflags = MS_RDONLY | MS_SILENT; | 24 | int 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 | ||
| 505 | extern char __initramfs_start[], __initramfs_end[]; | 505 | extern 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 | |||
| 544 | static int __init populate_rootfs(void) | 541 | static 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 | } |
| 585 | rootfs_initcall(populate_rootfs); | 580 | rootfs_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); | |||
| 83 | extern void fork_init(unsigned long); | 84 | extern void fork_init(unsigned long); |
| 84 | extern void mca_init(void); | 85 | extern void mca_init(void); |
| 85 | extern void sbus_init(void); | 86 | extern void sbus_init(void); |
| 86 | extern void signals_init(void); | ||
| 87 | extern void pidhash_init(void); | 87 | extern void pidhash_init(void); |
| 88 | extern void pidmap_init(void); | 88 | extern void pidmap_init(void); |
| 89 | extern void prio_tree_init(void); | 89 | extern void prio_tree_init(void); |
