Commit 2249ca9d60d3a8a1f6f223f0f0a0283fcb7ce33e
1 parent
dcad47fc42
Exists in
master
and in
7 other branches
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>
Showing 11 changed files with 12 additions and 7 deletions Side-by-side Diff
- arch/powerpc/kernel/rtas.c
- arch/powerpc/kernel/time.c
- arch/powerpc/lib/locks.c
- arch/powerpc/mm/numa.c
- arch/powerpc/platforms/pseries/iommu.c
- arch/powerpc/platforms/pseries/lpar.c
- arch/powerpc/platforms/pseries/setup.c
- arch/ppc64/kernel/idle.c
- arch/ppc64/kernel/machine_kexec.c
- arch/ppc64/kernel/sysfs.c
- include/asm-powerpc/smp.h
arch/powerpc/kernel/rtas.c
... | ... | @@ -608,7 +608,6 @@ |
608 | 608 | return 0; |
609 | 609 | } |
610 | 610 | |
611 | -#ifdef CONFIG_SMP | |
612 | 611 | /* This version can't take the spinlock, because it never returns */ |
613 | 612 | |
614 | 613 | struct rtas_args rtas_stop_self_args = { |
... | ... | @@ -633,7 +632,6 @@ |
633 | 632 | |
634 | 633 | panic("Alas, I survived.\n"); |
635 | 634 | } |
636 | -#endif | |
637 | 635 | |
638 | 636 | /* |
639 | 637 | * Call early during boot, before mem init or bootmem, to retreive the RTAS |
arch/powerpc/kernel/time.c
... | ... | @@ -61,6 +61,7 @@ |
61 | 61 | #include <asm/prom.h> |
62 | 62 | #include <asm/irq.h> |
63 | 63 | #include <asm/div64.h> |
64 | +#include <asm/smp.h> | |
64 | 65 | #ifdef CONFIG_PPC64 |
65 | 66 | #include <asm/systemcfg.h> |
66 | 67 | #include <asm/firmware.h> |
... | ... | @@ -117,10 +118,6 @@ |
117 | 118 | |
118 | 119 | unsigned long ppc_proc_freq; |
119 | 120 | unsigned long ppc_tb_freq; |
120 | - | |
121 | -#ifdef CONFIG_PPC32 /* XXX for now */ | |
122 | -#define boot_cpuid 0 | |
123 | -#endif | |
124 | 121 | |
125 | 122 | u64 tb_last_jiffy __cacheline_aligned_in_smp; |
126 | 123 | unsigned long tb_last_stamp; |
arch/powerpc/lib/locks.c
arch/powerpc/mm/numa.c
arch/powerpc/platforms/pseries/iommu.c
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/setup.c
arch/ppc64/kernel/idle.c
arch/ppc64/kernel/machine_kexec.c
arch/ppc64/kernel/sysfs.c
include/asm-powerpc/smp.h
... | ... | @@ -86,7 +86,6 @@ |
86 | 86 | #else |
87 | 87 | /* for UP */ |
88 | 88 | #define smp_setup_cpu_maps() |
89 | -#define smp_release_cpus() | |
90 | 89 | |
91 | 90 | #endif /* CONFIG_SMP */ |
92 | 91 | |
... | ... | @@ -94,6 +93,9 @@ |
94 | 93 | #define get_hard_smp_processor_id(CPU) (paca[(CPU)].hw_cpu_id) |
95 | 94 | #define set_hard_smp_processor_id(CPU, VAL) \ |
96 | 95 | do { (paca[(CPU)].hw_cpu_id = (VAL)); } while (0) |
96 | + | |
97 | +extern void smp_release_cpus(void); | |
98 | + | |
97 | 99 | #else |
98 | 100 | /* 32-bit */ |
99 | 101 | #ifndef CONFIG_SMP |