diff options
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/time.c | 10 |
3 files changed, 14 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index a7def5f90cad..612b0c4dc26d 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -125,6 +125,7 @@ PHONY += systbl_chk | |||
125 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i | 125 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i |
126 | $(call cmd,systbl_chk) | 126 | $(call cmd,systbl_chk) |
127 | 127 | ||
128 | ifeq ($(CONFIG_PPC_OF_BOOT_TRAMPOLINE),y) | ||
128 | $(obj)/built-in.o: prom_init_check | 129 | $(obj)/built-in.o: prom_init_check |
129 | 130 | ||
130 | quiet_cmd_prom_init_check = CALL $< | 131 | quiet_cmd_prom_init_check = CALL $< |
@@ -133,5 +134,6 @@ quiet_cmd_prom_init_check = CALL $< | |||
133 | PHONY += prom_init_check | 134 | PHONY += prom_init_check |
134 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o | 135 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o |
135 | $(call cmd,prom_init_check) | 136 | $(call cmd,prom_init_check) |
137 | endif | ||
136 | 138 | ||
137 | clean-files := vmlinux.lds | 139 | clean-files := vmlinux.lds |
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index f46548e66045..1f6816003ebe 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -424,8 +424,8 @@ void __init setup_system(void) | |||
424 | printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); | 424 | printk("htab_hash_mask = 0x%lx\n", htab_hash_mask); |
425 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 425 | #endif /* CONFIG_PPC_STD_MMU_64 */ |
426 | if (PHYSICAL_START > 0) | 426 | if (PHYSICAL_START > 0) |
427 | printk("physical_start = 0x%lx\n", | 427 | printk("physical_start = 0x%llx\n", |
428 | PHYSICAL_START); | 428 | (unsigned long long)PHYSICAL_START); |
429 | printk("-----------------------------------------------------\n"); | 429 | printk("-----------------------------------------------------\n"); |
430 | 430 | ||
431 | DBG(" <- setup_system()\n"); | 431 | DBG(" <- setup_system()\n"); |
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index bee1443da763..15391c2ab013 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include <linux/jiffies.h> | 52 | #include <linux/jiffies.h> |
53 | #include <linux/posix-timers.h> | 53 | #include <linux/posix-timers.h> |
54 | #include <linux/irq.h> | 54 | #include <linux/irq.h> |
55 | #include <linux/delay.h> | ||
55 | 56 | ||
56 | #include <asm/io.h> | 57 | #include <asm/io.h> |
57 | #include <asm/processor.h> | 58 | #include <asm/processor.h> |
@@ -1143,6 +1144,15 @@ void div128_by_32(u64 dividend_high, u64 dividend_low, | |||
1143 | 1144 | ||
1144 | } | 1145 | } |
1145 | 1146 | ||
1147 | /* We don't need to calibrate delay, we use the CPU timebase for that */ | ||
1148 | void calibrate_delay(void) | ||
1149 | { | ||
1150 | /* Some generic code (such as spinlock debug) use loops_per_jiffy | ||
1151 | * as the number of __delay(1) in a jiffy, so make it so | ||
1152 | */ | ||
1153 | loops_per_jiffy = tb_ticks_per_jiffy; | ||
1154 | } | ||
1155 | |||
1146 | static int __init rtc_init(void) | 1156 | static int __init rtc_init(void) |
1147 | { | 1157 | { |
1148 | struct platform_device *pdev; | 1158 | struct platform_device *pdev; |