Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


Commit [3dd6b5] Maximize Restore History

numa: in-kernel profiling: use cpu_to_mem() for per cpu allocations

In kernel profiling requires that we be able to allocate "local" memory
for each cpu. Use "cpu_to_mem()" instead of "cpu_to_node()" to support
memoryless nodes.

Depends on the "numa_mem_id()" patch.

Signed-off-by: Lee Schermerhorn <>
Cc: Tejun Heo <>
Cc: Mel Gorman <>
Cc: Christoph Lameter <>
Cc: Nick Piggin <>
Cc: David Rientjes <>
Cc: Eric Whitney <>
Cc: KAMEZAWA Hiroyuki <>
Cc: Ingo Molnar <>
Cc: Thomas Gleixner <>
Cc: "H. Peter Anvin" <>
Cc: "Luck, Tony" <>
Cc: Pekka Enberg <>
Cc: <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

Lee Schermerhorn Lee Schermerhorn 2010-05-26

Linus Torvalds Linus Torvalds 2010-05-27

changed kernel/profile.c
kernel/profile.c Diff Switch to side-by-side view