]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
PM: sleep: fix typos in comments
authorLu Jialin <lujialin4@huawei.com>
Thu, 8 Apr 2021 08:14:44 +0000 (16:14 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:37:21 +0000 (19:37 +0200)
Change "occured" to "occurred" in kernel/power/autosleep.c.

Change "consiting" to "consisting" in kernel/power/snapshot.c.

Change "avaiable" to "available" in kernel/power/swap.c.

No functionality changed.

Signed-off-by: Lu Jialin <lujialin4@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/autosleep.c
kernel/power/snapshot.c
kernel/power/swap.c

index 9af5a50d348994c001505074c3fa9f5639b9b308..b29c8aca7486cd7761acf34e1996864032777ec8 100644 (file)
@@ -54,7 +54,7 @@ static void try_to_suspend(struct work_struct *work)
                goto out;
 
        /*
-        * If the wakeup occured for an unknown reason, wait to prevent the
+        * If the wakeup occurred for an unknown reason, wait to prevent the
         * system from trying to suspend and waking up in a tight loop.
         */
        if (final_count == initial_count)
index d63560e1cf8715d6952b74570c30a1c69b1e7c74..1a221dcb3c01cb107769cc6c3e0475ca710711cc 100644 (file)
@@ -329,7 +329,7 @@ static void *chain_alloc(struct chain_allocator *ca, unsigned int size)
 /**
  * Data types related to memory bitmaps.
  *
- * Memory bitmap is a structure consiting of many linked lists of
+ * Memory bitmap is a structure consisting of many linked lists of
  * objects.  The main list's elements are of type struct zone_bitmap
  * and each of them corresonds to one zone.  For each zone bitmap
  * object there is a list of objects of type struct bm_block that
index 72e33054a2e1b72d7b9c529d59105a51ea9dc9e6..bea3cb8afa11261e6262ba9de30b3d68eae602f8 100644 (file)
@@ -884,7 +884,7 @@ out_clean:
  *     enough_swap - Make sure we have enough swap to save the image.
  *
  *     Returns TRUE or FALSE after checking the total amount of swap
- *     space avaiable from the resume partition.
+ *     space available from the resume partition.
  */
 
 static int enough_swap(unsigned int nr_pages)