kernel-aes67/include/asm-ppc64
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
..
iSeries [PATCH] ppc64 iSeries: fix boot time setting 2005-05-25 10:13:43 -07:00
8253pit.h
a.out.h [PATCH] ppc64: remove unnecessary include 2005-05-01 08:58:46 -07:00
abs_addr.h
agp.h [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
atomic.h
bitops.h
bootinfo.h
btext.h
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
checksum.h
compat.h
cputable.h
cputime.h
current.h
dbdma.h
delay.h
div64.h
dma-mapping.h
dma.h
eeh.h
elf.h [PATCH] ppc64: Fix PER_LINUX32 behaviour 2005-06-08 16:24:15 -07:00
errno.h
fcntl.h
floppy.h
hardirq.h
hdreg.h
hvcall.h
hvconsole.h
hvcserver.h
hw_irq.h
ide.h
imalloc.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
io.h
ioctl.h
ioctls.h
iommu.h
ipc.h
ipcbuf.h
irq.h
kdebug.h
keylargo.h
kmap_types.h
kprobes.h
linkage.h
lmb.h
local.h
lppaca.h
machdep.h
macio.h
mc146818rtc.h
memory.h
mman.h
mmu_context.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
mmu.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
mmzone.h
module.h
msgbuf.h
naca.h
namei.h
numnodes.h
nvram.h
of_device.h
paca.h
page.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
param.h
parport.h
pci-bridge.h
pci.h
percpu.h
pgalloc.h [PATCH] ppc64: update to use the new 4L headers 2005-05-01 08:58:44 -07:00
pgtable.h [PATCH] ppc64: pgtable.h and other header cleanups 2005-05-05 16:36:32 -07:00
plpar_wrappers.h
pmac_feature.h
pmac_low_i2c.h
pmc.h
poll.h
posix_types.h
ppc32.h
ppc_asm.h
ppcdebug.h
processor.h [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
prom.h [PATCH] ppc32/ppc64: cleanup /proc/device-tree 2005-06-01 07:54:14 -07:00
pSeries_reconfig.h
ptrace-common.h
ptrace.h
resource.h
rtas.h
rwsem.h
scatterlist.h
seccomp.h
sections.h
segment.h
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
smp.h [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
smu.h
socket.h
sockios.h
spinlock.h [PATCH] ppc64: reverse prediction on spinlock busy loop code 2005-05-01 08:58:47 -07:00
sstep.h
stat.h
statfs.h
string.h
system.h
systemcfg.h
termbits.h
termios.h
thread_info.h [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
time.h
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h
ucontext.h
udbg.h
unaligned.h
uninorth.h
unistd.h
user.h
vdso.h
vga.h
vio.h
xics.h [PATCH] ppc64: global interrupt queue cleanup 2005-05-06 08:07:01 -07:00
xor.h