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
9556b782
Commit
9556b782
authored
Jul 17, 2004
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[swsusp] Fix nasty typo.
parent
e2676af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
kernel/power/swsusp.c
kernel/power/swsusp.c
+5
-5
No files found.
kernel/power/swsusp.c
View file @
9556b782
...
...
@@ -578,7 +578,7 @@ static int saveable(struct zone * zone, unsigned long * zone_pfn)
return
0
;
}
if
((
chunk_size
=
is_head_of_free_region
(
page
)))
{
zone_pfn
+=
chunk_size
-
1
;
*
zone_pfn
+=
chunk_size
-
1
;
return
0
;
}
...
...
@@ -601,11 +601,11 @@ static void count_data_pages(void)
}
static
void
copy_data_pages
(
struct
pbe
*
pbe
)
static
void
copy_data_pages
(
void
)
{
struct
zone
*
zone
;
unsigned
long
zone_pfn
;
struct
pbe
*
pbe
=
pagedir_nosave
;
for_each_zone
(
zone
)
{
if
(
!
is_highmem
(
zone
))
...
...
@@ -807,9 +807,9 @@ int suspend_prepare_image(void)
printk
(
", "
);
#endif
printk
(
"counting pages to copy"
);
drain_local_pages
();
count_data_pages
();
printk
(
"swsusp: Need to copy %u pages
\n
"
,
nr_copy_pages
);
nr_needed_pages
=
nr_copy_pages
+
PAGES_FOR_IO
;
swsusp_alloc
();
...
...
@@ -818,7 +818,7 @@ int suspend_prepare_image(void)
* Kill them.
*/
drain_local_pages
();
copy_data_pages
(
pagedir_nosave
);
copy_data_pages
();
/*
* End of critical section. From now on, we can write to memory,
...
...
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