blob: da6981efdc394057840030d6503bcd34ecfc446a [file] [log] [blame]
Russell Kingfe6ef2d2005-06-19 09:52:07 +01001#ifndef ASMARM_ARCH_SMP_H
2#define ASMARM_ARCH_SMP_H
3
4#include <linux/config.h>
5
Russell King0a5709b2005-11-16 14:51:20 +00006#include <asm/hardware.h>
Russell Kingfe6ef2d2005-06-19 09:52:07 +01007#include <asm/io.h>
8
9#define hard_smp_processor_id() \
10 ({ \
11 unsigned int cpunum; \
12 __asm__("mrc p15, 0, %0, c0, c0, 5" \
13 : "=r" (cpunum)); \
14 cpunum &= 0x0F; \
15 })
16
17extern void secondary_scan_irqs(void);
18
19#endif