smp.h 341 B

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