Skip to content

Commit 6be2408

Browse files
Zhen Leirafaeljw
authored andcommitted
PM: hibernate: fix spelling mistakes
Fix some spelling mistakes in comments: corresonds ==> corresponds alocated ==> allocated unitialized ==> uninitialized Deompression ==> Decompression Signed-off-by: Zhen Lei <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 558642b commit 6be2408

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

kernel/power/snapshot.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static void *chain_alloc(struct chain_allocator *ca, unsigned int size)
331331
*
332332
* Memory bitmap is a structure consisting of many linked lists of
333333
* objects. The main list's elements are of type struct zone_bitmap
334-
* and each of them corresonds to one zone. For each zone bitmap
334+
* and each of them corresponds to one zone. For each zone bitmap
335335
* object there is a list of objects of type struct bm_block that
336336
* represent each blocks of bitmap in which information is stored.
337337
*
@@ -1500,7 +1500,7 @@ static struct memory_bitmap copy_bm;
15001500
/**
15011501
* swsusp_free - Free pages allocated for hibernation image.
15021502
*
1503-
* Image pages are alocated before snapshot creation, so they need to be
1503+
* Image pages are allocated before snapshot creation, so they need to be
15041504
* released after resume.
15051505
*/
15061506
void swsusp_free(void)
@@ -2326,7 +2326,7 @@ static struct memory_bitmap *safe_highmem_bm;
23262326
* (@nr_highmem_p points to the variable containing the number of highmem image
23272327
* pages). The pages that are "safe" (ie. will not be overwritten when the
23282328
* hibernation image is restored entirely) have the corresponding bits set in
2329-
* @bm (it must be unitialized).
2329+
* @bm (it must be uninitialized).
23302330
*
23312331
* NOTE: This function should not be called if there are no highmem image pages.
23322332
*/
@@ -2483,7 +2483,7 @@ static inline void free_highmem_data(void) {}
24832483

24842484
/**
24852485
* prepare_image - Make room for loading hibernation image.
2486-
* @new_bm: Unitialized memory bitmap structure.
2486+
* @new_bm: Uninitialized memory bitmap structure.
24872487
* @bm: Memory bitmap with unsafe pages marked.
24882488
*
24892489
* Use @bm to mark the pages that will be overwritten in the process of

kernel/power/swap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ struct dec_data {
11251125
};
11261126

11271127
/**
1128-
* Deompression function that runs in its own thread.
1128+
* Decompression function that runs in its own thread.
11291129
*/
11301130
static int lzo_decompress_threadfn(void *data)
11311131
{

0 commit comments

Comments
 (0)