kernel_optimize_test/fs/xfs
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
..
linux-2.6 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
quota Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
support Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [XFS] Enable XFS_VNODE_TRACE 2005-05-05 13:26:18 -07:00
xfs_acl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_acl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_ag.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_alloc_btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_alloc_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_alloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_alloc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_arch.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_attr_leaf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_attr_leaf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_attr_sf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_attr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_attr.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_behavior.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_behavior.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bit.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bit.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bmap_btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bmap_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_bmap.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_buf_item.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_buf_item.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_cap.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_clnt.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_da_btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_da_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dfrag.c [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_dfrag.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dinode.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir_leaf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir_leaf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir_sf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_block.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_block.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_data.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_data.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_leaf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_leaf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_node.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_node.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_sf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_sf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_trace.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2_trace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dir2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dmapi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_dmops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_error.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_error.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_extfree_item.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_extfree_item.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_fs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_fsops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_fsops.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_ialloc_btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_ialloc_btree.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_ialloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_ialloc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_iget.c [XFS] Move the XFS inode to the front of its hash list on a cache hit 2005-05-05 13:23:27 -07:00
xfs_imap.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_inode_item.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_inode_item.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_inode.c [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_inode.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_inum.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_iocore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_iomap.c [XFS] Fix a bug in xfs_iomap for extent handling of write cases 2005-05-06 06:42:22 -07:00
xfs_iomap.h [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_itable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_itable.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_log_priv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_log_recover.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_log_recover.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_log.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_log.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_mac.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_macros.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_macros.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_mount.c [XFS] Block mount attempts for filesystems with version 1 directories. 2005-05-05 13:24:13 -07:00
xfs_mount.h [XFS] Cleanup use of loff_t vs xfs_off_t in the core code. 2005-05-05 13:33:40 -07:00
xfs_qmops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_quota.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_refcache.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_rename.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_rtalloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_rtalloc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_rw.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_rw.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_sb.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_ail.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_buf.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_extfree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_inode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_item.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_priv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans_space.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_trans.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs_types.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_utils.c [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_utils.h [XFS] Fix up uses of nlink_t incorrectly restricting us to 2^16 links for some platforms 2005-05-05 13:25:00 -07:00
xfs_vfsops.c [XFS] Allow initial XFS delayed allocation size to be increased beyond 64KB. 2005-05-05 13:28:29 -07:00
xfs_vnodeops.c [XFS] Add ATTR_NOLOCK for xfs_setattr to indicate that XFS_IOLOCK is held 2005-05-05 13:27:19 -07:00
xfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00