Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton: - a few misc things - ocfs2 updates - most of MM * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (159 commits) tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include proc: more robust bulk read test proc: test /proc/*/maps, smaps, smaps_rollup, statm proc: use seq_puts() everywhere proc: read kernel cpu stat pointer once proc: remove unused argument in proc_pid_lookup() fs/proc/thread_self.c: code cleanup for proc_setup_thread_self() fs/proc/self.c: code cleanup for proc_setup_self() proc: return exit code 4 for skipped tests mm,mremap: bail out earlier in mremap_to under map pressure mm/sparse: fix a bad comparison mm/memory.c: do_fault: avoid usage of stale vm_area_struct writeback: fix inode cgroup switching comment mm/huge_memory.c: fix "orig_pud" set but not used mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC mm/memcontrol.c: fix bad line in comment mm/cma.c: cma_declare_contiguous: correct err handling mm/page_ext.c: fix an imbalance with kmemleak mm/compaction: pass pgdat to too_many_isolated() instead of zone mm: remove zone_lru_lock() function, access ->lru_lock directly ...
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <linux/crash_dump.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/memory.h>
|
||||
#include <linux/numa.h>
|
||||
|
||||
#include <asm/uv/uv_mmrs.h>
|
||||
#include <asm/uv/uv_hub.h>
|
||||
@@ -1390,7 +1391,7 @@ static void __init build_socket_tables(void)
|
||||
}
|
||||
|
||||
/* Set socket -> node values: */
|
||||
lnid = -1;
|
||||
lnid = NUMA_NO_NODE;
|
||||
for_each_present_cpu(cpu) {
|
||||
int nid = cpu_to_node(cpu);
|
||||
int apicid, sockid;
|
||||
@@ -1521,7 +1522,7 @@ static void __init uv_system_init_hub(void)
|
||||
new_hub->pnode = 0xffff;
|
||||
|
||||
new_hub->numa_blade_id = uv_node_to_blade_id(nodeid);
|
||||
new_hub->memory_nid = -1;
|
||||
new_hub->memory_nid = NUMA_NO_NODE;
|
||||
new_hub->nr_possible_cpus = 0;
|
||||
new_hub->nr_online_cpus = 0;
|
||||
}
|
||||
@@ -1538,7 +1539,7 @@ static void __init uv_system_init_hub(void)
|
||||
|
||||
uv_cpu_info_per(cpu)->p_uv_hub_info = uv_hub_info_list(nodeid);
|
||||
uv_cpu_info_per(cpu)->blade_cpu_id = uv_cpu_hub_info(cpu)->nr_possible_cpus++;
|
||||
if (uv_cpu_hub_info(cpu)->memory_nid == -1)
|
||||
if (uv_cpu_hub_info(cpu)->memory_nid == NUMA_NO_NODE)
|
||||
uv_cpu_hub_info(cpu)->memory_nid = cpu_to_node(cpu);
|
||||
|
||||
/* Init memoryless node: */
|
||||
|
@@ -171,7 +171,7 @@ void __init setup_per_cpu_areas(void)
|
||||
unsigned long delta;
|
||||
int rc;
|
||||
|
||||
pr_info("NR_CPUS:%d nr_cpumask_bits:%d nr_cpu_ids:%u nr_node_ids:%d\n",
|
||||
pr_info("NR_CPUS:%d nr_cpumask_bits:%d nr_cpu_ids:%u nr_node_ids:%u\n",
|
||||
NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids);
|
||||
|
||||
/*
|
||||
|
@@ -56,6 +56,7 @@
|
||||
#include <linux/stackprotector.h>
|
||||
#include <linux/gfp.h>
|
||||
#include <linux/cpuidle.h>
|
||||
#include <linux/numa.h>
|
||||
|
||||
#include <asm/acpi.h>
|
||||
#include <asm/desc.h>
|
||||
@@ -841,7 +842,7 @@ wakeup_secondary_cpu_via_init(int phys_apicid, unsigned long start_eip)
|
||||
/* reduce the number of lines printed when booting a large cpu count system */
|
||||
static void announce_cpu(int cpu, int apicid)
|
||||
{
|
||||
static int current_node = -1;
|
||||
static int current_node = NUMA_NO_NODE;
|
||||
int node = early_cpu_to_node(cpu);
|
||||
static int width, node_width;
|
||||
|
||||
|
Reference in New Issue
Block a user