Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
facee873
Commit
facee873
authored
Mar 28, 2006
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'misc' of
git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
parents
b239cbe9
10d713ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/prom.c
+1
-13
arch/ppc/lib/strcase.c
arch/ppc/lib/strcase.c
+1
-1
No files found.
arch/powerpc/kernel/prom.c
View file @
facee873
...
...
@@ -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 */
...
...
arch/ppc/lib/strcase.c
View file @
facee873
...
...
@@ -11,7 +11,7 @@ int strcasecmp(const char *s1, const char *s2)
return
c1
-
c2
;
}
int
strncasecmp
(
const
char
*
s1
,
const
char
*
s2
,
in
t
n
)
int
strncasecmp
(
const
char
*
s1
,
const
char
*
s2
,
size_
t
n
)
{
int
c1
,
c2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment