linux/include/asm-s390
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
..
a.out.h
atomic.h
bitops.h
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
ccwdev.h
ccwgroup.h
checksum.h
cio.h
cmb.h [PATCH] s390: remove ioctl32 from dasdcmb 2005-05-01 08:58:59 -07:00
compat.h
cpcmd.h
cputime.h
current.h
dasd.h
debug.h [PATCH] s390: allow longer debug feature names 2005-05-01 08:58:58 -07:00
delay.h
div64.h
dma-mapping.h
dma.h
ebcdic.h
elf.h
errno.h
extmem.h
fcntl.h
hardirq.h
idals.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
kmap_types.h
linkage.h
local.h
lowcore.h
mathemu.h
mman.h
mmu_context.h
mmu.h
module.h
msgbuf.h
namei.h
page.h [PATCH] s390: default storage key 2005-05-01 08:58:58 -07:00
param.h
pci.h
percpu.h
pgalloc.h
pgtable.h [PATCH] freepgt: arch FIRST_USER_ADDRESS 0 2005-04-19 13:29:23 -07:00
poll.h
posix_types.h
processor.h [PATCH] s390: default storage key 2005-05-01 08:58:58 -07:00
ptrace.h [PATCH] s390: default storage key 2005-05-01 08:58:58 -07:00
qdio.h
qeth.h
resource.h
rwsem.h
s390_ext.h
scatterlist.h
sections.h
segment.h
semaphore.h
sembuf.h
setup.h
sfp-machine.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
signal.h [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
sigp.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
tape390.h
termbits.h
termios.h
thread_info.h
timer.h
timex.h
tlb.h
tlbflush.h
todclk.h
topology.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h
user.h [PATCH] s390: uml ptrace fixes 2005-06-04 17:13:00 -07:00
vtoc.h
xor.h