--- zzzz-none-000/linux-2.4.17/include/asm-mips64/smp.h 2001-07-04 18:50:39.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/asm-mips64/smp.h 2004-11-24 13:21:49.000000000 +0000 @@ -17,23 +17,6 @@ #include #include -#if 0 -struct cpuinfo_mips { /* XXX */ - unsigned long loops_per_sec; - unsigned long last_asn; - unsigned long *pgd_cache; - unsigned long *pte_cache; - unsigned long pgtable_cache_sz; - unsigned long ipi_count; - unsigned long irq_attempt[NR_IRQS]; - unsigned long smp_local_irq_count; - unsigned long prof_multiplier; - unsigned long prof_counter; -} __attribute__((aligned(64))); - -extern struct cpuinfo_mips cpu_data[NR_CPUS]; -#endif - #define smp_processor_id() (current->processor) #define PROC_CHANGE_PENALTY 20 @@ -85,4 +68,16 @@ #error cpumask macros only defined for 128p kernels #endif +struct call_data_struct { + void (*func)(void *); + void *info; + atomic_t started; + atomic_t finished; + int wait; +}; + +extern struct call_data_struct *call_data; + +extern cpumask_t cpu_online_map; + #endif /* __ASM_SMP_H */