Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.37-rc2 17 lines 373 B view raw
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