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
Kirill Smelkov
linux
Commits
2e1e23d5
Commit
2e1e23d5
authored
Apr 23, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sparc printk levels in arch/sparc/mm/init.c
From Alan
parent
45bcb92a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/sparc/mm/init.c
arch/sparc/mm/init.c
+3
-3
No files found.
arch/sparc/mm/init.c
View file @
2e1e23d5
...
@@ -459,7 +459,7 @@ void __init mem_init(void)
...
@@ -459,7 +459,7 @@ void __init mem_init(void)
initpages
=
(((
unsigned
long
)
&
__init_end
)
-
((
unsigned
long
)
&
__init_begin
));
initpages
=
(((
unsigned
long
)
&
__init_end
)
-
((
unsigned
long
)
&
__init_begin
));
initpages
=
PAGE_ALIGN
(
initpages
)
>>
PAGE_SHIFT
;
initpages
=
PAGE_ALIGN
(
initpages
)
>>
PAGE_SHIFT
;
printk
(
"Memory: %dk available (%dk kernel code, %dk data, %dk init, %ldk highmem) [%08lx,%08lx]
\n
"
,
printk
(
KERN_INFO
"Memory: %dk available (%dk kernel code, %dk data, %dk init, %ldk highmem) [%08lx,%08lx]
\n
"
,
nr_free_pages
()
<<
(
PAGE_SHIFT
-
10
),
nr_free_pages
()
<<
(
PAGE_SHIFT
-
10
),
codepages
<<
(
PAGE_SHIFT
-
10
),
codepages
<<
(
PAGE_SHIFT
-
10
),
datapages
<<
(
PAGE_SHIFT
-
10
),
datapages
<<
(
PAGE_SHIFT
-
10
),
...
@@ -486,14 +486,14 @@ void free_initmem (void)
...
@@ -486,14 +486,14 @@ void free_initmem (void)
totalram_pages
++
;
totalram_pages
++
;
num_physpages
++
;
num_physpages
++
;
}
}
printk
(
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
printk
(
KERN_INFO
"Freeing unused kernel memory: %dk freed
\n
"
,
(
&
__init_end
-
&
__init_begin
)
>>
10
);
}
}
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
void
free_initrd_mem
(
unsigned
long
start
,
unsigned
long
end
)
void
free_initrd_mem
(
unsigned
long
start
,
unsigned
long
end
)
{
{
if
(
start
<
end
)
if
(
start
<
end
)
printk
(
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
printk
(
KERN_INFO
"Freeing initrd memory: %ldk freed
\n
"
,
(
end
-
start
)
>>
10
);
for
(;
start
<
end
;
start
+=
PAGE_SIZE
)
{
for
(;
start
<
end
;
start
+=
PAGE_SIZE
)
{
struct
page
*
p
=
virt_to_page
(
start
);
struct
page
*
p
=
virt_to_page
(
start
);
...
...
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