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
23774942
Commit
23774942
authored
Jun 09, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "x86, 32-bit: SRAT fix"
This reverts commit
ea57a5a6
, a better fix will be merged.
parent
ea57a5a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
arch/x86/kernel/srat_32.c
arch/x86/kernel/srat_32.c
+8
-3
No files found.
arch/x86/kernel/srat_32.c
View file @
23774942
...
@@ -240,7 +240,6 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
...
@@ -240,7 +240,6 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
for
(
i
=
0
;
i
<
MAX_APICID
;
i
++
)
for
(
i
=
0
;
i
<
MAX_APICID
;
i
++
)
apicid_2_node
[
i
]
=
pxm_to_node
(
apicid_to_pxm
[
i
]);
apicid_2_node
[
i
]
=
pxm_to_node
(
apicid_to_pxm
[
i
]);
remove_all_active_ranges
();
for
(
j
=
0
;
j
<
num_memory_chunks
;
j
++
){
for
(
j
=
0
;
j
<
num_memory_chunks
;
j
++
){
struct
node_memory_chunk_s
*
chunk
=
&
node_memory_chunk
[
j
];
struct
node_memory_chunk_s
*
chunk
=
&
node_memory_chunk
[
j
];
printk
(
"chunk %d nid %d start_pfn %08lx end_pfn %08lx
\n
"
,
printk
(
"chunk %d nid %d start_pfn %08lx end_pfn %08lx
\n
"
,
...
@@ -248,8 +247,14 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
...
@@ -248,8 +247,14 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
node_read_chunk
(
chunk
->
nid
,
chunk
);
node_read_chunk
(
chunk
->
nid
,
chunk
);
e820_register_active_regions
(
chunk
->
nid
,
chunk
->
start_pfn
,
e820_register_active_regions
(
chunk
->
nid
,
chunk
->
start_pfn
,
min
(
chunk
->
end_pfn
,
max_pfn
));
min
(
chunk
->
end_pfn
,
max_pfn
));
memory_present
(
chunk
->
nid
,
chunk
->
start_pfn
,
}
min
(
chunk
->
end_pfn
,
max_pfn
));
for_each_online_node
(
nid
)
{
unsigned
long
start
=
node_start_pfn
[
nid
];
unsigned
long
end
=
node_end_pfn
[
nid
];
memory_present
(
nid
,
start
,
end
);
node_remap_size
[
nid
]
=
node_memmap_size_bytes
(
nid
,
start
,
end
);
}
}
return
1
;
return
1
;
out_fail:
out_fail:
...
...
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