blob: ab2c79bb95050cc58e4c9388f3423235c23554d9 [file] [log] [blame]
Russell Kingfe6ef2d2005-06-19 09:52:07 +01001#ifndef ASMARM_ARCH_SMP_H
2#define ASMARM_ARCH_SMP_H
3
Russell Kingfe6ef2d2005-06-19 09:52:07 +01004
Russell King0a5709b2005-11-16 14:51:20 +00005#include <asm/hardware.h>
Russell Kingfe6ef2d2005-06-19 09:52:07 +01006#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
16extern void secondary_scan_irqs(void);
17
18#endif