diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-06 21:18:13 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-06 21:18:13 -0500 |
commit | 2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e (patch) | |
tree | 33a5c8d6e2363013db1052f474c1225c472e3fcd /arch/powerpc/kernel | |
parent | dcad47fc423ac9f4934579af814fa2dad5c8081b (diff) |
powerpc: Various UP build fixes
Mostly this involves adding #include <asm/smp.h>, since that defines
things like boot_cpuid[_phys] and [gs]et_hard_smp_processor_id, which
are SMP-related but still needed on UP. This incorporates fixes
posted by Olof Johansson and Heikki Lindholm.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/time.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index b7fc2d884950..751f5ddea913 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -608,7 +608,6 @@ asmlinkage int ppc_rtas(struct rtas_args __user *uargs) | |||
608 | return 0; | 608 | return 0; |
609 | } | 609 | } |
610 | 610 | ||
611 | #ifdef CONFIG_SMP | ||
612 | /* This version can't take the spinlock, because it never returns */ | 611 | /* This version can't take the spinlock, because it never returns */ |
613 | 612 | ||
614 | struct rtas_args rtas_stop_self_args = { | 613 | struct rtas_args rtas_stop_self_args = { |
@@ -633,7 +632,6 @@ void rtas_stop_self(void) | |||
633 | 632 | ||
634 | panic("Alas, I survived.\n"); | 633 | panic("Alas, I survived.\n"); |
635 | } | 634 | } |
636 | #endif | ||
637 | 635 | ||
638 | /* | 636 | /* |
639 | * Call early during boot, before mem init or bootmem, to retreive the RTAS | 637 | * Call early during boot, before mem init or bootmem, to retreive the RTAS |
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 6996a593dcb3..1c7ea5e06311 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <asm/prom.h> | 61 | #include <asm/prom.h> |
62 | #include <asm/irq.h> | 62 | #include <asm/irq.h> |
63 | #include <asm/div64.h> | 63 | #include <asm/div64.h> |
64 | #include <asm/smp.h> | ||
64 | #ifdef CONFIG_PPC64 | 65 | #ifdef CONFIG_PPC64 |
65 | #include <asm/systemcfg.h> | 66 | #include <asm/systemcfg.h> |
66 | #include <asm/firmware.h> | 67 | #include <asm/firmware.h> |
@@ -118,10 +119,6 @@ static unsigned adjusting_time = 0; | |||
118 | unsigned long ppc_proc_freq; | 119 | unsigned long ppc_proc_freq; |
119 | unsigned long ppc_tb_freq; | 120 | unsigned long ppc_tb_freq; |
120 | 121 | ||
121 | #ifdef CONFIG_PPC32 /* XXX for now */ | ||
122 | #define boot_cpuid 0 | ||
123 | #endif | ||
124 | |||
125 | u64 tb_last_jiffy __cacheline_aligned_in_smp; | 122 | u64 tb_last_jiffy __cacheline_aligned_in_smp; |
126 | unsigned long tb_last_stamp; | 123 | unsigned long tb_last_stamp; |
127 | 124 | ||