|
@@ -365,7 +365,7 @@ static int __cpuinit profile_cpu_callback(struct notifier_block *info,
|
|
|
switch (action) {
|
|
|
case CPU_UP_PREPARE:
|
|
|
case CPU_UP_PREPARE_FROZEN:
|
|
|
- node = cpu_to_node(cpu);
|
|
|
+ node = cpu_to_mem(cpu);
|
|
|
per_cpu(cpu_profile_flip, cpu) = 0;
|
|
|
if (!per_cpu(cpu_profile_hits, cpu)[1]) {
|
|
|
page = alloc_pages_exact_node(node,
|
|
@@ -567,7 +567,7 @@ static int create_hash_tables(void)
|
|
|
int cpu;
|
|
|
|
|
|
for_each_online_cpu(cpu) {
|
|
|
- int node = cpu_to_node(cpu);
|
|
|
+ int node = cpu_to_mem(cpu);
|
|
|
struct page *page;
|
|
|
|
|
|
page = alloc_pages_exact_node(node,
|