Russell King | fe6ef2d | 2005-06-19 09:52:07 +0100 | [diff] [blame] | 1 | #ifndef ASMARM_ARCH_SMP_H |
| 2 | #define ASMARM_ARCH_SMP_H |
| 3 | |
Russell King | fe6ef2d | 2005-06-19 09:52:07 +0100 | [diff] [blame] | 4 | |
Russell King | 0a5709b | 2005-11-16 14:51:20 +0000 | [diff] [blame] | 5 | #include <asm/hardware.h> |
Russell King | fe6ef2d | 2005-06-19 09:52:07 +0100 | [diff] [blame] | 6 | #include <asm/io.h> |
| 7 | |
| 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; \ |
| 14 | }) |
| 15 | |
| 16 | extern void secondary_scan_irqs(void); |
| 17 | |
| 18 | #endif |