Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24649
b: refs/heads/master
c: 10d713a
h: refs/heads/master
i:
  24647: 7ff8b6a
v: v3
  • Loading branch information
Kumar Gala committed Mar 28, 2006
1 parent cf34ca5 commit a73c3ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 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: cbd312b94ed123dc7080c9591cb715cd2a7327c0
refs/heads/master: 10d713aef238b02a774766b2622027361630e28d
14 changes: 1 addition & 13 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,25 +1030,13 @@ static int __init early_init_dt_scan_chosen(unsigned long node,

if (strstr(cmd_line, "mem=")) {
char *p, *q;
unsigned long maxmem = 0;

for (q = cmd_line; (p = strstr(q, "mem=")) != 0; ) {
q = p + 4;
if (p > cmd_line && p[-1] != ' ')
continue;
maxmem = simple_strtoul(q, &q, 0);
if (*q == 'k' || *q == 'K') {
maxmem <<= 10;
++q;
} else if (*q == 'm' || *q == 'M') {
maxmem <<= 20;
++q;
} else if (*q == 'g' || *q == 'G') {
maxmem <<= 30;
++q;
}
memory_limit = memparse(q, &q);
}
memory_limit = maxmem;
}

/* break now */
Expand Down

0 comments on commit a73c3ab

Please sign in to comment.