]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc/64s: Kill the unused argument of exit_lazy_flush_tlb
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Mon, 9 Mar 2026 18:14:29 +0000 (23:44 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 17 Mar 2026 08:26:37 +0000 (13:56 +0530)
In previous patch we removed the only caller of exit_lazy_flush_tlb()
which was passing always_flush = false in it's second argument.

With that gone, all the callers of exit_lazy_flush_tlb() are local to
radix_pgtable.c and there is no need of an additional argument.

This patch does the required cleanup. There should not be any
functionality change in this patch.

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/6f96ea53588034312ae84f74b1e2fa9c4ce7cfd5.1773078178.git.ritesh.list@gmail.com
arch/powerpc/mm/book3s64/internal.h
arch/powerpc/mm/book3s64/pgtable.c
arch/powerpc/mm/book3s64/radix_tlb.c

index cad08d83369cf201e718a120fa7c6c4274847e17..f7055251c8b709335442c9a54ae12b256dac82a9 100644 (file)
@@ -31,6 +31,4 @@ static inline bool slb_preload_disabled(void)
 
 void hpt_do_stress(unsigned long ea, unsigned long hpte_group);
 
-void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush);
-
 #endif /* ARCH_POWERPC_MM_BOOK3S64_INTERNAL_H */
index faec2dc71a5ca776a87f38ba994bfa75213c97f0..d32197d3298af4803351c0e391e4c5c58889492c 100644 (file)
@@ -23,8 +23,6 @@
 #include <mm/mmu_decl.h>
 #include <trace/events/thp.h>
 
-#include "internal.h"
-
 struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
 EXPORT_SYMBOL_GPL(mmu_psize_defs);
 
index 9e1f6558d0262c1c9e1055a7949431389d13f0c9..339bd276840bacf2ae0a2a4acc1fb2ec440b2a1b 100644 (file)
@@ -19,8 +19,6 @@
 #include <asm/cputhreads.h>
 #include <asm/plpar_wrappers.h>
 
-#include "internal.h"
-
 /*
  * tlbiel instruction for radix, set invalidation
  * i.e., r=1 and is=01 or is=10 or is=11
@@ -660,7 +658,7 @@ static bool mm_needs_flush_escalation(struct mm_struct *mm)
  * If always_flush is true, then flush even if this CPU can't be removed
  * from mm_cpumask.
  */
-void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush)
+static void exit_lazy_flush_tlb(struct mm_struct *mm)
 {
        unsigned long pid = mm->context.id;
        int cpu = smp_processor_id();
@@ -703,19 +701,17 @@ void exit_lazy_flush_tlb(struct mm_struct *mm, bool always_flush)
        if (cpumask_test_cpu(cpu, mm_cpumask(mm))) {
                dec_mm_active_cpus(mm);
                cpumask_clear_cpu(cpu, mm_cpumask(mm));
-               always_flush = true;
        }
 
 out:
-       if (always_flush)
-               _tlbiel_pid(pid, RIC_FLUSH_ALL);
+       _tlbiel_pid(pid, RIC_FLUSH_ALL);
 }
 
 #ifdef CONFIG_SMP
 static void do_exit_flush_lazy_tlb(void *arg)
 {
        struct mm_struct *mm = arg;
-       exit_lazy_flush_tlb(mm, true);
+       exit_lazy_flush_tlb(mm);
 }
 
 static void exit_flush_lazy_tlbs(struct mm_struct *mm)
@@ -777,7 +773,7 @@ static enum tlb_flush_type flush_type_needed(struct mm_struct *mm, bool fullmm)
                         * to trim.
                         */
                        if (tick_and_test_trim_clock()) {
-                               exit_lazy_flush_tlb(mm, true);
+                               exit_lazy_flush_tlb(mm);
                                return FLUSH_TYPE_NONE;
                        }
                }
@@ -823,7 +819,7 @@ static enum tlb_flush_type flush_type_needed(struct mm_struct *mm, bool fullmm)
                if (current->mm == mm)
                        return FLUSH_TYPE_LOCAL;
                if (cpumask_test_cpu(cpu, mm_cpumask(mm)))
-                       exit_lazy_flush_tlb(mm, true);
+                       exit_lazy_flush_tlb(mm);
                return FLUSH_TYPE_NONE;
        }