smp.h 315 B

123456789101112131415161718
  1. #ifndef ASMARM_ARCH_SMP_H
  2. #define ASMARM_ARCH_SMP_H
  3. #include <asm/hardware.h>
  4. #include <asm/io.h>
  5. #define hard_smp_processor_id() \
  6. ({ \
  7. unsigned int cpunum; \
  8. __asm__("mrc p15, 0, %0, c0, c0, 5" \
  9. : "=r" (cpunum)); \
  10. cpunum &= 0x0F; \
  11. })
  12. extern void secondary_scan_irqs(void);
  13. #endif