1 /* smp.h: PPC specific SMP stuff.
3 * Taken from asm-sparc/smp.h
10 #include <linux/config.h>
11 #include <linux/kernel.h>
18 unsigned long loops_per_sec
;
20 unsigned long *pgd_cache
;
21 unsigned long *pte_cache
;
22 unsigned long pgtable_cache_sz
;
24 extern struct cpuinfo_PPC cpu_data
[NR_CPUS
];
26 extern unsigned long smp_proc_in_lock
[NR_CPUS
];
28 extern void smp_store_cpu_info(int id
);
29 extern void smp_send_tlb_invalidate(int);
30 extern void smp_send_xmon_break(int cpu
);
32 extern void smp_message_recv(int, struct pt_regs
*);
34 #define NO_PROC_ID 0xFF /* No processor magic marker */
35 #define PROC_CHANGE_PENALTY 20
37 /* 1 to 1 mapping on PPC -- Cort */
38 #define cpu_logical_map(cpu) (cpu)
39 #define cpu_number_map(x) (x)
40 extern volatile unsigned long cpu_callin_map
[NR_CPUS
];
42 #define smp_processor_id() (current->processor)
44 extern int smp_hw_index
[NR_CPUS
];
45 #define hard_smp_processor_id() (smp_hw_index[smp_processor_id()])
47 struct klock_info_struct
{
48 unsigned long kernel_flag
;
52 extern struct klock_info_struct klock_info
;
53 #define KLOCK_HELD 0xffffffff
54 #define KLOCK_CLEAR 0x0
56 #endif /* __ASSEMBLY__ */
58 #else /* !(CONFIG_SMP) */
60 #endif /* !(CONFIG_SMP) */
62 #endif /* !(_PPC_SMP_H) */
63 #endif /* __KERNEL__ */