sched: Remove unlikely() from ttwu_post_activation
[pandora-kernel.git] / arch / arm / include / asm / smp_mpidr.h
1 #ifndef ASMARM_SMP_MIDR_H
2 #define ASMARM_SMP_MIDR_H
3
4 #define hard_smp_processor_id()                                         \
5         ({                                                              \
6                 unsigned int cpunum;                                    \
7                 __asm__("\n"                                            \
8                         "1:     mrc p15, 0, %0, c0, c0, 5\n"            \
9                         "       .pushsection \".alt.smp.init\", \"a\"\n"\
10                         "       .long   1b\n"                           \
11                         "       mov     %0, #0\n"                       \
12                         "       .popsection"                            \
13                         : "=r" (cpunum));                               \
14                 cpunum &= 0x0F;                                         \
15         })
16
17 #endif