kernel-ark/include/asm-arm
Ingo Molnar 39c715b717 [PATCH] smp_processor_id() cleanup
This patch implements a number of smp_processor_id() cleanup ideas that
Arjan van de Ven and I came up with.

The previous __smp_processor_id/_smp_processor_id/smp_processor_id API
spaghetti was hard to follow both on the implementational and on the
usage side.

Some of the complexity arose from picking wrong names, some of the
complexity comes from the fact that not all architectures defined
__smp_processor_id.

In the new code, there are two externally visible symbols:

 - smp_processor_id(): debug variant.

 - raw_smp_processor_id(): nondebug variant. Replaces all existing
   uses of _smp_processor_id() and __smp_processor_id(). Defined
   by every SMP architecture in include/asm-*/smp.h.

There is one new internal symbol, dependent on DEBUG_PREEMPT:

 - debug_smp_processor_id(): internal debug variant, mapped to
                             smp_processor_id().

Also, i moved debug_smp_processor_id() from lib/kernel_lock.c into a new
lib/smp_processor_id.c file.  All related comments got updated and/or
clarified.

I have build/boot tested the following 8 .config combinations on x86:

 {SMP,UP} x {PREEMPT,!PREEMPT} x {DEBUG_PREEMPT,!DEBUG_PREEMPT}

I have also build/boot tested x64 on UP/PREEMPT/DEBUG_PREEMPT.  (Other
architectures are untested, but should work just fine.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 18:46:13 -07:00
..
arch-aaec2000 [PATCH] ARM: 2686/2: AAEC-2000 Core support 2005-06-20 18:51:05 +01:00
arch-cl7500
arch-clps711x
arch-ebsa110
arch-ebsa285
arch-epxa10db
arch-h720x
arch-imx
arch-integrator [PATCH] ARM SMP: Add missed files from Integrator/CP platform 2005-06-19 09:52:07 +01:00
arch-iop3xx
arch-ixp4xx
arch-ixp2000 [PATCH] ARM: 2701/1: free up ixp2000 timer 4 for the watchdog 2005-06-20 18:51:07 +01:00
arch-l7200
arch-lh7a40x
arch-omap
arch-pxa [PATCH] ARM: 2703/1: pxa-regs.h: complete I2S GPIO alternate functions for PXA27x 2005-06-08 19:00:15 +01:00
arch-rpc
arch-s3c2410
arch-sa1100
arch-shark
arch-versatile [PATCH] ARM: 2693/1: Add PCI support for Versatile/PB 2005-06-20 18:51:06 +01:00
hardware
mach
a.out.h
apm.h
assembler.h
atomic.h
bitops.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h [PATCH] ARM: Add common CACHE_COLOUR macro 2005-06-20 11:31:09 +01:00
checksum.h
cpu-multi32.h
cpu-single.h
cpu.h
cputime.h
current.h
delay.h
div64.h
dma-mapping.h
dma.h
domain.h
ecard.h
elf.h
errno.h
fcntl.h
fiq.h
floppy.h
fpstate.h
glue.h
hardirq.h
hardware.h
hdreg.h
ide.h
io.h [PATCH] ARM: Add iomap support for ARM 2005-06-20 18:44:37 +01:00
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
kmap_types.h
leds.h
limits.h
linkage.h
local.h
locks.h
mc146818rtc.h
memory.h
mman.h
mmu_context.h
mmu.h
mmzone.h
module.h
msgbuf.h
namei.h
numnodes.h
nwflash.h
page.h
param.h
parport.h
pci.h
percpu.h
pgalloc.h
pgtable.h
poll.h
posix_types.h
proc-fns.h
processor.h
procinfo.h
ptrace.h
resource.h
rtc.h
scatterlist.h
sections.h
segment.h
semaphore-helper.h
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sizes.h
smp.h [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
socket.h
sockios.h
spinlock.h
stat.h
statfs.h
string.h
suspend.h
system.h [PATCH] arm: irqs_disabled() type fix 2005-06-21 18:46:11 -07:00
termbits.h
termios.h
therm.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
traps.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h
user.h
vfp.h
vfpmacros.h
vga.h
xor.h