Commit f3f62256 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: uniprocessor compile fixes

From: Anton Blanchard <anton@samba.org>

UP compile fixes.
parent 52b5a7dd
...@@ -76,7 +76,6 @@ static u_int NumSources; ...@@ -76,7 +76,6 @@ static u_int NumSources;
static int NumISUs; static int NumISUs;
static int open_pic_irq_offset; static int open_pic_irq_offset;
static volatile unsigned char* chrp_int_ack_special; static volatile unsigned char* chrp_int_ack_special;
static int broken_ipi_registers;
OpenPIC_SourcePtr ISU[OPENPIC_MAX_ISU]; OpenPIC_SourcePtr ISU[OPENPIC_MAX_ISU];
...@@ -248,6 +247,9 @@ static void openpic_safe_writefield(volatile u_int *addr, u_int mask, ...@@ -248,6 +247,9 @@ static void openpic_safe_writefield(volatile u_int *addr, u_int mask,
} }
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
static int broken_ipi_registers;
static u_int openpic_read_IPI(volatile u_int* addr) static u_int openpic_read_IPI(volatile u_int* addr)
{ {
u_int val = 0; u_int val = 0;
......
...@@ -930,10 +930,12 @@ prom_hold_cpus(unsigned long mem) ...@@ -930,10 +930,12 @@ prom_hold_cpus(unsigned long mem)
unsigned long *spinloop = __v2a(&__secondary_hold_spinloop); unsigned long *spinloop = __v2a(&__secondary_hold_spinloop);
unsigned long *acknowledge = __v2a(&__secondary_hold_acknowledge); unsigned long *acknowledge = __v2a(&__secondary_hold_acknowledge);
unsigned long secondary_hold = (unsigned long)__v2a(*PTRRELOC((unsigned long *)__secondary_hold)); unsigned long secondary_hold = (unsigned long)__v2a(*PTRRELOC((unsigned long *)__secondary_hold));
struct naca_struct *_naca = RELOC(naca);
struct systemcfg *_systemcfg = RELOC(systemcfg); struct systemcfg *_systemcfg = RELOC(systemcfg);
struct paca_struct *_xPaca = PTRRELOC(&paca[0]); struct paca_struct *_xPaca = PTRRELOC(&paca[0]);
struct prom_t *_prom = PTRRELOC(&prom); struct prom_t *_prom = PTRRELOC(&prom);
#ifdef CONFIG_SMP
struct naca_struct *_naca = RELOC(naca);
#endif
/* On pmac, we just fill out the various global bitmasks and /* On pmac, we just fill out the various global bitmasks and
* arrays indicating our CPUs are here, they are actually started * arrays indicating our CPUs are here, they are actually started
...@@ -1103,8 +1105,9 @@ prom_hold_cpus(unsigned long mem) ...@@ -1103,8 +1105,9 @@ prom_hold_cpus(unsigned long mem)
cpu_set(cpuid, RELOC(cpu_online_map)); cpu_set(cpuid, RELOC(cpu_online_map));
cpu_set(cpuid, RELOC(cpu_present_at_boot)); cpu_set(cpuid, RELOC(cpu_present_at_boot));
} }
#endif
next: next:
#ifdef CONFIG_SMP
/* Init paca for secondary threads. They start later. */ /* Init paca for secondary threads. They start later. */
for (i=1; i < cpu_threads; i++) { for (i=1; i < cpu_threads; i++) {
cpuid++; cpuid++;
......
...@@ -98,10 +98,12 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); ...@@ -98,10 +98,12 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
DEFINE_PER_CPU(struct pte_freelist_batch *, pte_freelist_cur); DEFINE_PER_CPU(struct pte_freelist_batch *, pte_freelist_cur);
unsigned long pte_freelist_forced_free; unsigned long pte_freelist_forced_free;
#ifdef CONFIG_SMP
static void pte_free_smp_sync(void *arg) static void pte_free_smp_sync(void *arg)
{ {
/* Do nothing, just ensure we sync with all CPUs */ /* Do nothing, just ensure we sync with all CPUs */
} }
#endif
/* This is only called when we are critically out of memory /* This is only called when we are critically out of memory
* (and fail to get a page in pte_free_tlb). * (and fail to get a page in pte_free_tlb).
......
...@@ -176,11 +176,9 @@ Commands:\n\ ...@@ -176,11 +176,9 @@ Commands:\n\
x exit monitor\n\ x exit monitor\n\
u dump segment table or SLB\n\ u dump segment table or SLB\n\
? help\n" ? help\n"
#ifndef CONFIG_PPC_ISERIES
"\ "\
zr reboot\n\ zr reboot\n\
zh halt\n" zh halt\n"
#endif
; ;
static int xmon_trace[NR_CPUS]; static int xmon_trace[NR_CPUS];
...@@ -577,10 +575,8 @@ cmds(struct pt_regs *excp) ...@@ -577,10 +575,8 @@ cmds(struct pt_regs *excp)
cpu_cmd(); cpu_cmd();
break; break;
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#ifndef CONFIG_PPC_ISERIES
case 'z': case 'z':
bootcmds(); bootcmds();
#endif
case 'T': case 'T':
debug_trace(); debug_trace();
break; break;
...@@ -1148,7 +1144,6 @@ super_regs() ...@@ -1148,7 +1144,6 @@ super_regs()
int cmd; int cmd;
unsigned long val; unsigned long val;
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
int i;
struct paca_struct *ptrPaca = NULL; struct paca_struct *ptrPaca = NULL;
struct ItLpPaca *ptrLpPaca = NULL; struct ItLpPaca *ptrLpPaca = NULL;
struct ItLpRegSave *ptrLpRegSave = NULL; struct ItLpRegSave *ptrLpRegSave = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment