Commit 14a64515 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix numa meminfo

From: Dave Hansen <haveblue@us.ibm.com>

We didn't notice this for a while because we didn't have any memory holes
on the NUMA-Q, but on the x440, we do.
parent dd1b5a41
......@@ -898,7 +898,7 @@ void si_meminfo_node(struct sysinfo *val, int nid)
val->totalram = pgdat->node_size;
val->freeram = nr_free_pages_pgdat(pgdat);
val->totalhigh = pgdat->node_zones[ZONE_HIGHMEM].spanned_pages;
val->totalhigh = pgdat->node_zones[ZONE_HIGHMEM].present_pages;
val->freehigh = pgdat->node_zones[ZONE_HIGHMEM].free_pages;
val->mem_unit = PAGE_SIZE;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment