LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/2] percpu: Optimize percpu accesses v3
@ 2008-02-19 20:32 Mike Travis
  2008-02-19 20:32 ` [PATCH 1/2] init: move setup of nr_cpu_ids to as early as possible v3 Mike Travis
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mike Travis @ 2008-02-19 20:32 UTC (permalink / raw)
  To: Andrew Morton, Ingo Molnar, Thomas Gleixner, Andi Kleen
  Cc: Christoph Lameter, Jack Steiner, linux-kernel, linux-mm


This is the generic (non-x86) changes for zero-based per cpu variables.

This patchset provides the following:

  * Init: Move setup of nr_cpu_ids to as early as possible for usage
    by early boot functions.

  * Generic: Percpu infrastructure to rebase the per cpu area to zero

    This provides for the capability of accessing the percpu variables
    using a local register instead of having to go through a table
    on node 0 to find this cpu specific offsets.  It also would allow
    atomic operations on percpu variables to reduce required locking.

  * Introduces a new DEFINE_PER_CPU_FIRST to locate a percpu variable
    (cpu_pda in this case) at the beginning of the percpu .data section.

Based on git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>
---
v3: * split generic/x86-specific into two patches

v2: * rebased and retested using linux-2.6.git
    * fixed errors reported by checkpatch.pl

-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 0/2] generic: simplify setup_nr_cpu_ids and add set_cpus_allowed_ptr
@ 2008-03-26 21:23 Mike Travis
  2008-03-26 21:23 ` [PATCH 1/2] init: move setup of nr_cpu_ids to as early as possible v3 Mike Travis
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Travis @ 2008-03-26 21:23 UTC (permalink / raw)
  To: Andrew Morton, Ingo Molnar; +Cc: linux-mm, linux-kernel


Two simple patches to simplify setup_nr_cpu_ids and add a new function,
set_cpus_allowed_ptr().

Based on:
	git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
	git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86.git


Signed-off-by: Mike Travis <travis@sgi.com>

-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-26 21:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-19 20:32 [PATCH 0/2] percpu: Optimize percpu accesses v3 Mike Travis
2008-02-19 20:32 ` [PATCH 1/2] init: move setup of nr_cpu_ids to as early as possible v3 Mike Travis
2008-02-19 20:32 ` [PATCH 2/2] generic: Percpu infrastructure to rebase the per cpu area to zero v3 Mike Travis
2008-02-20  9:14 ` [PATCH 0/2] percpu: Optimize percpu accesses v3 Ingo Molnar
2008-02-20 16:21   ` Thomas Gleixner
2008-03-26 21:23 [PATCH 0/2] generic: simplify setup_nr_cpu_ids and add set_cpus_allowed_ptr Mike Travis
2008-03-26 21:23 ` [PATCH 1/2] init: move setup of nr_cpu_ids to as early as possible v3 Mike Travis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).