acpi,mm: fix typo sibiling -> sibling
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Wed, 2 Aug 2023 09:28:56 +0000 (17:28 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 6 Oct 2023 21:44:10 +0000 (14:44 -0700)
First found this typo as reviewing memory tier code. Fix it by sed like:
$ sed -i 's/sibiling/sibling/g' $(git grep -l sibiling)

so the acpi one will be corrected as well.

Link: https://lkml.kernel.org/r/20230802092856.819328-1-lizhijian@cn.fujitsu.com
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Huang, Ying <ying.huang@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/acpi/acpi_pad.c
include/linux/memory-tiers.h
mm/memory-tiers.c

index 7a453c5ff303a9e285fe8b136c00c332c6b274f5..7f073ca64f0e9f172935ed1e76e16e53aa4d32e9 100644 (file)
@@ -100,7 +100,7 @@ static void round_robin_cpu(unsigned int tsk_index)
        for_each_cpu(cpu, pad_busy_cpus)
                cpumask_or(tmp, tmp, topology_sibling_cpumask(cpu));
        cpumask_andnot(tmp, cpu_online_mask, tmp);
-       /* avoid HT sibilings if possible */
+       /* avoid HT siblings if possible */
        if (cpumask_empty(tmp))
                cpumask_andnot(tmp, cpu_online_mask, pad_busy_cpus);
        if (cpumask_empty(tmp)) {
index 437441cdf78fb6dc1dea0a709e9e9f1b418cb83a..4fa178b50784e28027b2418bee2e527ea8fc197e 100644 (file)
@@ -22,7 +22,7 @@
 struct memory_tier;
 struct memory_dev_type {
        /* list of memory types that are part of same tier as this type */
-       struct list_head tier_sibiling;
+       struct list_head tier_sibling;
        /* abstract distance for this specific memory type */
        int adistance;
        /* Nodes of same abstract distance */
index 37a4f59d9585b9c635dd66016e23b5699f64a591..876d8a5e210e55531a8b50b73872aecb3c7e7bbf 100644 (file)
@@ -115,7 +115,7 @@ static __always_inline nodemask_t get_memtier_nodemask(struct memory_tier *memti
        nodemask_t nodes = NODE_MASK_NONE;
        struct memory_dev_type *memtype;
 
-       list_for_each_entry(memtype, &memtier->memory_types, tier_sibiling)
+       list_for_each_entry(memtype, &memtier->memory_types, tier_sibling)
                nodes_or(nodes, nodes, memtype->nodes);
 
        return nodes;
@@ -174,7 +174,7 @@ static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memty
         * If the memtype is already part of a memory tier,
         * just return that.
         */
-       if (!list_empty(&memtype->tier_sibiling)) {
+       if (!list_empty(&memtype->tier_sibling)) {
                list_for_each_entry(memtier, &memory_tiers, list) {
                        if (adistance == memtier->adistance_start)
                                return memtier;
@@ -218,7 +218,7 @@ static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memty
        memtier = new_memtier;
 
 link_memtype:
-       list_add(&memtype->tier_sibiling, &memtier->memory_types);
+       list_add(&memtype->tier_sibling, &memtier->memory_types);
        return memtier;
 }
 
@@ -527,7 +527,7 @@ static bool clear_node_memory_tier(int node)
                memtype = node_memory_types[node].memtype;
                node_clear(node, memtype->nodes);
                if (nodes_empty(memtype->nodes)) {
-                       list_del_init(&memtype->tier_sibiling);
+                       list_del_init(&memtype->tier_sibling);
                        if (list_empty(&memtier->memory_types))
                                destroy_memory_tier(memtier);
                }
@@ -553,7 +553,7 @@ struct memory_dev_type *alloc_memory_type(int adistance)
                return ERR_PTR(-ENOMEM);
 
        memtype->adistance = adistance;
-       INIT_LIST_HEAD(&memtype->tier_sibiling);
+       INIT_LIST_HEAD(&memtype->tier_sibling);
        memtype->nodes  = NODE_MASK_NONE;
        kref_init(&memtype->kref);
        return memtype;