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
e07b9e08
Commit
e07b9e08
authored
Jul 01, 2010
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: LMB: convert pfn_valid to use LMB
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
eda2e5dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
arch/arm/mm/init.c
arch/arm/mm/init.c
+4
-5
No files found.
arch/arm/mm/init.c
View file @
e07b9e08
...
@@ -239,16 +239,15 @@ static void __init arm_bootmem_free(struct meminfo *mi)
...
@@ -239,16 +239,15 @@ static void __init arm_bootmem_free(struct meminfo *mi)
#ifndef CONFIG_SPARSEMEM
#ifndef CONFIG_SPARSEMEM
int
pfn_valid
(
unsigned
long
pfn
)
int
pfn_valid
(
unsigned
long
pfn
)
{
{
struct
mem
info
*
mi
=
&
meminfo
;
struct
mem
block_region
*
mem
=
&
memblock
.
memory
;
unsigned
int
left
=
0
,
right
=
m
i
->
nr_banks
;
unsigned
int
left
=
0
,
right
=
m
em
->
cnt
;
do
{
do
{
unsigned
int
mid
=
(
right
+
left
)
/
2
;
unsigned
int
mid
=
(
right
+
left
)
/
2
;
struct
membank
*
bank
=
&
mi
->
bank
[
mid
];
if
(
pfn
<
bank_pfn_start
(
bank
))
if
(
pfn
<
memblock_start_pfn
(
mem
,
mid
))
right
=
mid
;
right
=
mid
;
else
if
(
pfn
>=
bank_pfn_end
(
bank
))
else
if
(
pfn
>=
memblock_end_pfn
(
mem
,
mid
))
left
=
mid
+
1
;
left
=
mid
+
1
;
else
else
return
1
;
return
1
;
...
...
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