Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235469
b: refs/heads/master
c: 6add7cd
h: refs/heads/master
i:
  235467: eda0f1a
v: v3
  • Loading branch information
Nathan Fontenot authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 9ec06c1 commit 4e7962e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dc41aa6d6172d61c10638d11933a3595a41d51a
refs/heads/master: 6add7cd618b4d4dc525731beb539c5e06e891855
13 changes: 10 additions & 3 deletions trunk/drivers/base/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,19 @@ memory_probe_store(struct class *class, struct class_attribute *attr,
{
u64 phys_addr;
int nid;
int ret;
int i, ret;

phys_addr = simple_strtoull(buf, NULL, 0);

nid = memory_add_physaddr_to_nid(phys_addr);
ret = add_memory(nid, phys_addr, PAGES_PER_SECTION << PAGE_SHIFT);
for (i = 0; i < sections_per_block; i++) {
nid = memory_add_physaddr_to_nid(phys_addr);
ret = add_memory(nid, phys_addr,
PAGES_PER_SECTION << PAGE_SHIFT);
if (ret)
break;

phys_addr += MIN_MEMORY_BLOCK_SIZE;
}

if (ret)
count = ret;
Expand Down

0 comments on commit 4e7962e

Please sign in to comment.