Skip to content

ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2

[email protected] linux-mm linuxppc-dev lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2arch/powerpc/kernel/setup-common.c arch/powerpc/kernel/setup_64.c arch/powerpc/platforms/cell/cbe_cpufreq.c +2 more+22 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] ppc64: Convert cpu_sibling_map to a per_cpu data array ppc64 v2
Quoted 10 lines · Stephen Rothwell
Quoted 9 lines · On Mon, 17 Sep 2007 16:28:31 +1000 Stephen Rothwell <[email protected]>…

the topology (on my POWERPC5+ box) is not correct:

cpu0/topology/thread_siblings:0000000f
cpu1/topology/thread_siblings:0000000f
cpu2/topology/thread_siblings:0000000f
cpu3/topology/thread_siblings:0000000f

it used to be:

Quoted 7 lines
Quoted 4 lines

cpu0/topology/thread_siblings:00000003
cpu1/topology/thread_siblings:00000003
cpu2/topology/thread_siblings:0000000c
cpu3/topology/thread_siblings:0000000c

This would be because we are setting up the cpu_sibling map before we call setup_per_cpu_areas().

The following patch hopefully should fix this problem. I'm not able to build or test it but the few references to cpu_sibling_map seem to all occur well after setup_per_cpu_areas is called.

Thanks Stephen for checking this out!

Signature · 5 lines
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>