[ARM] 4378/1: KS8695: Serial driver fix
[linux-2.6/linux-loongson.git] / include / asm-arm / arch-integrator / smp.h
blobab2c79bb95050cc58e4c9388f3423235c23554d9
1 #ifndef ASMARM_ARCH_SMP_H
2 #define ASMARM_ARCH_SMP_H
5 #include <asm/hardware.h>
6 #include <asm/io.h>
8 #define hard_smp_processor_id() \
9 ({ \
10 unsigned int cpunum; \
11 __asm__("mrc p15, 0, %0, c0, c0, 5" \
12 : "=r" (cpunum)); \
13 cpunum &= 0x0F; \
16 extern void secondary_scan_irqs(void);
18 #endif