Move the setting of nr_cpu_ids from sched_init() to init/main.c,
so that it's available as early as possible.
Based on the linux-2.6.git + x86.git
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
init/main.c| 21 +
kernel/sched.c |7 ---
2 files
it + x86.git
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
Notes:
(1 - had to disable CONFIG_SIS190 to build)
(2 - no modules)
Configs built and booted:
x86_64-default
x86_64-defconfig (2)
x86_64-nonuma (2)
Cleanup references to the early cpu maps for the non-SMP configuration
and remove some functions called for SMP configurations only.
Based on linux-2.6.git + x86.git
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/kernel/genapic_64.c |2 ++
arch/x86/kernel/mpparse_64.c
tion.
* This also supports further integration of x86_32/64.
Based on linux-2.6.git + x86.git
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/Kconfig |3 +
arch/x86/kernel/head64.c
ph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h |5 +
include/asm-generic/sections.h| 10 ++
include/asm-generic/vmlinux.lds.h | 14 ++
kernel/lockdep.c |4
ying x86_64).
Cc: Paul Mackerras <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-powerpc/percpu.h | 29 ++---
1 file changed, 2 insertions(+), 27 deletions(-)
--- a
n <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/Kconfig|3 +++
arch/powerpc/Kconfig |3 +++
arch/sparc64/Kconfig |3 +++
arch/x86/Kconfig
s390 percpu code works fine:
>
> Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-s390/percpu.h | 42 +-
TED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/kernel/module.c | 11 ---
include/asm-ia64/percpu.h | 29 +++--
include/linux/percpu.h|4
3 files changed, 7 insertions(+
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty
small so this is simply adding them together.
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Tr
pecial percpu arch implementations may be later consolidated
so that there are less cases to deal with.)
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
toph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-x86/percpu_64.h | 23 ++-
1 file changed, 2 insertions(+), 21 deletions(-)
--- a/include/asm-x86/percpu_64.h
+++ b/include/asm-x86/percpu_64.h
@@ -12,21 +12,10
x86_32 only provides a special way to obtain the local per cpu area offset
via x86_read_percpu. Otherwise it can fully use the generic handling.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike
kup.
Cc: David Miller <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/sparc64/mm/init.c |5 +
include/asm-sparc64/percpu.h | 22 +++---
2 files changed, 8 insert
e some include files just include
asm/percpu.h to avoid include recursion problems.
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
inclu
TED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
patchset on 2.6.24-rc6-mm1
(removes the percpu_modcopy changes that are already in.)
- change config ARCH_SETS_UP_PER_CPU_AREA to a global var
and use select HAVE_SETUP_PER_CPU_AREA to specify.
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[
toph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-x86/percpu_64.h | 23 ++-
1 file changed, 2 insertions(+), 21 deletions(-)
--- a/include/asm-x86/percpu_64.h
+++ b/include/asm-x86/percpu_64.h
@@ -12,31 +12,12
EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- Use def_bool as suggested by Randy.
V3->v4:
- change config ARCH_SETS_UP_PER_CPU_AREA to a global var
and use select HAVE_SETUP_PER_CP
x86_32 only provides a special way to obtain the local per cpu area offset
via x86_read_percpu. Otherwise it can fully use the generic handling.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike
Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- add support for PER_CPU_ATTRIBUTES
V2->V3:
- fix generic smp percpu_modcopy to use per_cpu_off
y: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- Special consideration for IA64: Add the ability to specify
arch specific per cpu flags
V2->V3:
- remove .data.percpu attribute from DEFINE_PER_CPU for non-smp case.
---
inclu
Change s390 percpu.h to use asm-generic/percpu.h
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V2->V3:
On Thu, 29 Nov 2007, Martin Schwidefsky wrote:
> On Wed, 2007-11-28 at 13:09 -0800, Chris
ia64 has a special processor specific mapping that can be used to locate the
offset for the current per cpu area.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- Merge
TED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V2->V3:
- use generic percpy_modcopy()
---
arch/sparc64/mm/init.c |5 +
include/asm-sparc64/percpu.h | 12 ++--
2 files changed, 7 insertions(+), 1
: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- add missing #endif
V2->V3:
- use generic percpy_modcopy()
---
include/asm-powerpc/percpu.h | 20 ++--
1 file changed, 2 insertions(+), 18 deletions(-)
--- a/inclu
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty
small so this is simply adding them together.
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Tr
Based on: 2.6.24-rc8-mm1
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
- added back in missing fold-percpu_modcopy pi
eter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/kernel/module.c| 11 ---
include/asm-generic/percpu.h |8
include/asm-ia64/percpu.h|5 -
include/asm-powerpc/percpu.h |9 -
include/asm
Provide a means to trap usages of per_cpu map variables before
they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate.
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/Kconfig.debug | 12
arch/x86/mm/numa_64.c |3 +++
include/asm-x86/topo
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
fixup:
- Split cpu_to_node function into "early&quo
TED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/sparc64/mm/init.c |5 +
include/asm-sparc64/percpu.h | 22 +++---
2 files changed, 8 insertions(+), 19 deletions(-)
--- a/arch/sparc64/mm
Provide a means to trap usages of per_cpu variables before
the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate.
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 11 ++-
lib/Kconfig.debug| 12
2 files c
Fixup change NR_CPUS patchset by rebasing on 2.6.24-rc8-mm1
from 2.6.24-rc6-mm1) and adding changes suggested by reviews.
Additionally, some new config options have been added to enable
large SMP configurations.
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTEC
Change the size of node ids for X86_64 from 8 bits to 16 bits
to accomodate more than 256 nodes.
Introduce a "numanode_t" type for x86-generic usage.
Cc: Eric Dumazet <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EM
ia64 has a special processor specific mapping that can be used to locate the
offset for the current per cpu area.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- Merge
: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V1->V2:
- add missing #endif
V2->V3:
- use generic percpy_modcopy()
---
include/asm-powerpc/percpu.h | 20 ++--
1 file changed, 2 insertions(+), 18 deletions(-)
--- a/inclu
Change "config ARCH_SETS_UP_PER_CPU_AREA" to "select
HAVE_SETUP_PER_CPU_AREA" as suggested by Sam.
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Cc: Sam Ravnborg <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTE
Change s390 percpu.h to use asm-generic/percpu.h
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
V2->V3:
On Thu, 29 Nov 2007, Martin Schwidefsky wrote:
> On Wed, 2007-11-28 at 13:09 -0800, Chris
called after
smp_set_apicids() has setup the percpu version of bios_cpu_apicid.
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
V1->V2:
- Removed extraneous casts
- Add slight optimization to apic_is_clustered_box
Adds and increases some config variables to accomodate larger SMP
configurations:
NR_CPUS: max limit now 4096
NODES_SHIFT: max limit now 9
THREAD_ORDER: max limit now 3
X86_SMP_MAX: say Y to enable possible cpus == NR_CPUS
Signed-off-by: Mike Travis <[EM
Define the size of the generic percpu pointers array to be NR_CPUS
Based on: 2.6.24-rc8-mm1
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/linux/percpu.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-
Provide a means to trap usages of per_cpu variables before
the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate.
Based on: 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed change
ia64 has a special processor specific mapping that can be used to locate the
offset for the current per cpu area.
Based on: 2.6.24-rc8-mm1
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
- added back in miss
ROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
V1->V2:
- add missing #endif
V2->V3:
Based on 2.6.24-rc8-mm1
Note there are two versions of this patchset:
- 2.6.24-rc8-mm1
- 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.2
Miller <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
---
arch/sparc64/mm/i
oph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
---
arch/Kconfig |3 +++
arch/ia64/Kconfig|4 +-
Change s390 percpu.h to use asm-generic/percpu.h
Based on: 2.6.24-rc8-mm1
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed chan
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Note there are two versions of this patchset:
- 2.6.24-rc8-mm1
- 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
fixup:
Change the Kconfig variable used to indicate that x86 has it's
own per_cpu area setup routine.
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL P
lt;[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/kernel/module.c| 11 ---
include/asm-generic/percpu.h |8
include/asm-ia64/percpu.
/21) git-x86
Cc: David Miller <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
---
arch
ia64 has a special processor specific mapping that can be used to locate the
offset for the current per cpu area.
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis &
Change s390 percpu.h to use asm-generic/percpu.h
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.
Paul Mackerras <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
rc8-mm1-fixup:
- rebased from 2.6.24-rc6-mm1 to 2.6.24-rc8-mm1
(removed changes that are in the git-x86.patch)
V1->V2:
- add missing #en
Provide a means to trap usages of per_cpu variables before
the per_cpu_areas are setup. Define CONFIG_DEBUG_PER_CPU to activate.
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 11 ++
Travis <[EMAIL PROTECTED]>
---
Fixup-V2:
- pulled the SMP_MAX patch as it's not strictly needed and some
more work on local cpumask_t variables needs to be done before
NR_CPUS is allowed to increase.
- changes to X86_32 have been removed (except for build errors)
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
fixup:
- Split cpu_to_node function
called after
setup_per_cpu_maps() has setup the percpu version of bios_cpu_apicid.
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
V1->V2:
- Removed extraneous casts
- Add slight
>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
fixup-V2:
- Fixed populate_memnodemap as suggested by Eric.
- Change to using s16 for static node id arrays and
int for node id's in per_cpu variables and __in
Provide a means to discover usages of per_cpu map variables before
they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate.
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
Fixup:
- for cpu_to_node() instead of panic'ing with BUG() use
dum
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
Fixup-V2:
- pulled the SMP_MAX patch as it's not strictly needed and some
more work on local cpumask_t variables needs to be done before
NR_CPUS is allowed to increase.
- changes to X86_32 have been removed (excep
Eric Dumazet <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
fixup-V2:
- Fixed populate_memnodemap as suggested by Eric.
- Change to using s16 for static node id arrays and
int for node id's
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
fixup
Provide a means to trap usages of per_cpu map variables before
they are setup. Define CONFIG_DEBUG_PER_CPU_MAPS to activate.
Based on 2.6.24-rc8-mm1 + latest (08/1/21) git-x86
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-x86/topology.h | 13 ++---
1 file chan
/arp_tables.c:
net/ipv4/netfilter/ip_tables.c:
net/ipv4/netfilter/ip_tables.c:
Applies to both:
2.6.24-rc8-mm1
2.6.24-rc8-mm1 + latest (08/01/21) git-x86 patch
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/mm/numa_64.c |2 --
i
Not sure how this leaked out and I haven't caught it yet in my
cross-build testing but to be on the safe side, PER_CPU_ATTRIBUTES
should be defined.
Applies to 2.6.24-rc8-mm1 + percpu changes
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/linux/percpu.h |4
1 f
please ignore me
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: Paul Mackerras <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: Yinghai Lu <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
--
--
To unsubscribe from this list: send
-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/Kconfig | 22 --
include/asm-x86/page_64.h |4
lib/Kconfig.debug | 12
3 files changed, 32 insertions(+), 6 deletions(-)
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -
: Yinghai Lu <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/Kconfig |2 +-
arch/x86/kernel/setup64.c| 10 +-
arch/x86/kernel/smpboot_32.c |2 +-
arch/x86/mm/numa_64.c| 14 ++
arch/x86/mm/srat_64.c
"HAVE_PER_CPU_SETUP" is different.]
Cc: David Miller <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: Paul Mackerras <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/Kconfig|2 +-
arch/ia
cess to the per cpu
variables using x86_32 percpu operations.
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" i
operations and access
to the per cpu variables using x86_32 percpu operations.
* This also supports further integration of x86_32/64.
Based on 2.6.24-rc8-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
arch/x86/Kconfig
es the &__per_cpu_x in lockdep. The __per_cpu_x are already
pointers. There is no need to take the address.
* Changes generic setup_per_cpu_areas to allocate per_cpu space in
node local memory. This requires a generic early_cpu_to_node function.
Based on 2.6.24-rc8-mm1
Signed-off-by: M
-mm1
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
arch/x86/kernel/head64.c |6 ++
arch/x86/kernel/setup64.c | 12 ++--
arch/x86/kernel/smpboot_64.c | 16
include/asm-gener
Both of these references to cpu_to_node() can potentially occur
before the "late" cpu_to_node map is setup. Therefore, they
should be changed to use early_cpu_to_node().
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/x86/mm/numa_64.c |5 +++--
1 file changed, 3
The previous version of this patch missed a code path in
inserting the boot cpu into the cpu sibling and core maps.
This fix corrects that omission.
--
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info
There are two versions of per_cpu_init() for ia64. This patch corrects
the problem that one of the versions did not insert the boot cpu
into the cpu sibling and core maps.
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/kernel/setup.c |8
arch/ia64/mm/co
Kconfig settings
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at ht
toph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-x86/percpu_64.h | 28 +++-
1 file changed, 3 insertions(+), 25 deletions(-)
--- a/include/asm-x86/percpu_64.h
+++ b/include/asm-x86/percpu_64.h
@@ -8,35 +8,13 @@
x86_32 only provides a special way to obtain the local per cpu area offset
via x86_read_percpu. Otherwise it can fully use the generic handling.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike
code works fine:
>
> Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-s390/percpu.h | 33 +
1 file chang
n <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/Kconfig|3 +++
arch/powerpc/Kconfig |3 +++
arch/sparc64/Kconfig |3 +++
arch/x86/Kconfig
ess cases to deal with.)
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 69
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 18 --
include/asm-ia64/percpu.h| 24 ++
L PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-powerpc/percpu.h | 21 ++---
1 file changed, 2 insertions(+), 19 deletions(-)
--- a/include/asm-powerpc/percpu.h
+++ b/include/asm-
ong Kconfig
- Follow Randy's suggestions on how to do the Kconfig settings
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of
n <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/ia64/Kconfig|3 +++
arch/powerpc/Kconfig |3 +++
arch/sparc64/Kconfig |3 +++
arch/x86/Kconfig
x86_32 only provides a special way to obtain the local per cpu area offset
via x86_read_percpu. Otherwise it can fully use the generic handling.
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike
ess cases to deal with.)
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 69
L PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-powerpc/percpu.h | 21 ++---
1 file changed, 2 insertions(+), 19 deletions(-)
--- a/include/asm-powerpc/percpu.h
+++ b/include/asm-
[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-ia64/percpu.h | 25 +++--
include/linux/percpu.h|4
2 files changed, 7 insertions(+), 22 deletions(-)
--- a/include/asm-ia64/percpu.h
+++ b/include/asm-ia64/percpu.h
@
Form a single percpu.h from percpu_32.h and percpu_64.h. Both are now pretty
small so this is simply adding them together.
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Tr
Cc: Rusty Russell <[EMAIL PROTECTED]>
Cc: Andi Kleen <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-generic/percpu.h | 18 --
include/asm-ia64/percpu.h| 24 ++
TED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
arch/sparc64/mm/init.c |5 +
include/asm-sparc64/percpu.h | 12 ++--
2 files changed, 7 insertions(+), 10 deletions(-)
--- a/arch/sparc64/mm/init.c
+++
code works fine:
>
> Acked-by: Martin Schwidefsky <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-s390/percpu.h | 33 +
1 file chang
toph Lameter <[EMAIL PROTECTED]>
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
---
include/asm-x86/percpu_64.h | 28 +++-
1 file changed, 3 insertions(+), 25 deletions(-)
--- a/include/asm-x86/percpu_64.h
+++ b/include/asm-x86/percpu_64.h
@@ -8,35 +8,13 @@
1 - 100 of 909 matches
Mail list logo