4 #include <linux/config.h>
6 #if defined(CONFIG_SMP)
8 /* Page Zero Location PDC will look for the address to branch to when we poke
9 ** slave CPUs still in "Icache loop".
11 #define PDC_OS_BOOT_RENDEZVOUS 0x10
12 #define PDC_OS_BOOT_RENDEZVOUS_HI 0x28
15 #include <linux/threads.h> /* for NR_CPUS */
16 typedef unsigned long address_t;
18 extern volatile unsigned long cpu_online_map;
22 * Private routines/data
24 * physical and logical are equivalent until we support CPU hotplug.
26 #define cpu_number_map(cpu) (cpu)
27 #define cpu_logical_map(cpu) (cpu)
29 extern void smp_send_reschedule(int cpu);
31 #endif /* !ASSEMBLY */
34 * This magic constant controls our willingness to transfer
35 * a process across CPUs. Such a transfer incurs cache and tlb
36 * misses. The current value is inherited from i386. Still needs
37 * to be tuned for parisc.
40 #define PROC_CHANGE_PENALTY 15 /* Schedule penalty */
44 #define STATE_RENDEZVOUS 0
45 #define STATE_STOPPED 1
46 #define STATE_RUNNING 2
47 #define STATE_HALTED 3
50 #define smp_processor_id() (current->processor)
52 #endif /* CONFIG_SMP */
54 #define NO_PROC_ID 0xFF /* No processor magic marker */
55 #define ANY_PROC_ID 0xFF /* Any processor magic marker */
57 #endif /* __ASM_SMP_H */