kernel_optimize_test/arch/ppc64/kernel
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
..
vdso32 [PATCH] ppc64: add PT_NOTE section to vDSO 2005-05-01 08:58:43 -07:00
vdso64 [PATCH] ppc64: add PT_NOTE section to vDSO 2005-05-01 08:58:43 -07:00
align.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-offsets.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
binfmt_elf32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
btext.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpu_setup_power4.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cputable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
eeh.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry.S [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
head.S [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
HvCall.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hvCall.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hvconsole.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hvcserver.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
HvLpConfig.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
HvLpEvent.c [PATCH] Change synchronize_kernel to _rcu and _sched 2005-05-01 08:59:04 -07:00
i8259.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i8259.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
idle_power4.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
idle.c [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ioctl32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iomap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iommu.c [PATCH] initialize TCE tables 2005-06-20 21:43:48 +10:00
irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_htab.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_iommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_pci_reset.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_setup.c [PATCH] ppc64: remove decr_overclock 2005-06-02 15:12:30 -07:00
iSeries_setup.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_smp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iSeries_VpdInfo.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ItLpQueue.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kprobes.c [PATCH] ppc64 kprobes: remove spurious MSR_SE masking 2005-06-08 16:21:13 -07:00
lmb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lparcfg.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
LparData.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
maple_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
maple_setup.c [PATCH] ppc64: Fix semantics of __ioremap 2005-04-16 15:24:33 -07:00
maple_time.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mf.c [PATCH] ppc64 iSeries: fix boot time setting 2005-05-25 10:13:43 -07:00
misc.S [PATCH] ppc64: Fix PER_LINUX32 behaviour 2005-06-08 16:24:15 -07:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nvram.c [PATCH] ppc64: nvram cleanups 2005-05-01 08:58:44 -07:00
of_device.c [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
pacaData.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci_direct_iommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci_dn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci_iommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci.c [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
pci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_feature.c [PATCH] ppc64: very basic desktop g5 sound support 2005-04-16 15:24:32 -07:00
pmac_low_i2c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_nvram.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_setup.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_smp.c [PATCH] ppc64: Fix g5 hw timebase sync 2005-05-23 11:51:24 -07:00
pmac_time.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ppc_ksyms.c [PATCH] ppc64: fix export of wrong symbol 2005-04-16 15:24:34 -07:00
proc_ppc64.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
process.c [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
prom_init.c [PATCH] prom_find_machine_type typo breaks pSeries lpar boot 2005-06-03 13:20:04 -07:00
prom.c [PATCH] ppc64: fix prom.c compile warning 2005-05-05 22:00:52 -07:00
pSeries_hvCall.S [PATCH] ppc64: enforce medium thread priority in hypervisor calls 2005-05-01 08:58:46 -07:00
pSeries_iommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pSeries_lpar.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pSeries_nvram.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pSeries_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pSeries_reconfig.c [PATCH] ppc32/ppc64: cleanup /proc/device-tree 2005-06-01 07:54:14 -07:00
pSeries_setup.c [PATCH] ppc64: Fix semantics of __ioremap 2005-04-16 15:24:33 -07:00
pSeries_smp.c [PATCH] ppc64: use cpu_has_feature macro 2005-06-20 21:43:15 +10:00
ptrace32.c [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
ptrace.c Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2005-05-03 08:14:09 +01:00
ras.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtas_flash.c [PATCH] ppc64: trivial user annotations 2005-04-26 11:26:53 -07:00
rtas-proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtas.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rtasd.c [PATCH] ppc64: quieten RTAS printks 2005-06-20 21:43:07 +10:00
rtc.c [PATCH] ppc64 iSeries: fix boot time setting 2005-05-25 10:13:43 -07:00
scanlog.c [PATCH] ppc64: trivial user annotations 2005-04-26 11:26:53 -07:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PATCH] ppc64: remove decr_overclock 2005-06-02 15:12:30 -07:00
signal32.c [PATCH] ppc64: fix 32-bit signal frame back link 2005-04-30 10:01:40 -07:00
signal.c [PATCH] arch/ppc64: Replace custom MIN macro 2005-05-05 19:32:59 -07:00
smp-tbsync.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smp.c [PATCH] ppc64: remove decr_overclock 2005-06-02 15:12:30 -07:00
sys_ppc32.c [PATCH] ppc64: Fix PER_LINUX32 behaviour 2005-06-08 16:24:15 -07:00
syscalls.c [PATCH] ppc64: Fix PER_LINUX32 behaviour 2005-06-08 16:24:15 -07:00
sysfs.c [PATCH] ppc64: cleanup iseries runlight support 2005-06-02 15:12:30 -07:00
time.c [PATCH] ppc64: allow timer based profiling on iseries 2005-05-31 14:54:18 -07:00
traps.c [PATCH] ppc64: Detect altivec via firmware on unknown CPUs 2005-04-16 15:24:36 -07:00
u3_iommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
udbg.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vdso.c [PATCH] ppc64: Improve mapping of vDSO 2005-04-16 15:24:35 -07:00
vecemu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vector.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vio.c [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
viopath.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmlinux.lds.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xics.c [PATCH] ppc64: global interrupt queue cleanup 2005-05-06 08:07:01 -07:00
XmPciLpEvent.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00