]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: MT: Remove unused function mips_mt_regdump()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Wed, 14 Aug 2024 10:39:33 +0000 (18:39 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 29 Aug 2024 08:41:36 +0000 (10:41 +0200)
The mips_mt_regdump() has not been used since
commit b633648c5ad3 ("MIPS: MT: Remove SMTC support"), so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mips_mt.h
arch/mips/kernel/mips-mt.c

index 28917f1582b311bec7d512a07b46df5788514500..6ea02af298762a67c9e3371c367a0020d5457f5d 100644 (file)
@@ -17,8 +17,6 @@ extern int vpelimit;
 extern cpumask_t mt_fpu_cpumask;
 extern unsigned long mt_fpemul_threshold;
 
-extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value);
-
 #ifdef CONFIG_MIPS_MT
 extern void mips_mt_set_cpuoptions(void);
 #else
index c938ba208fc0f2e23f410ecf799ffde1d5972460..37676a44fefb1ff72a221e88d71c58b183c9c8fc 100644 (file)
@@ -43,83 +43,6 @@ static int __init maxtcs(char *str)
 
 __setup("maxtcs=", maxtcs);
 
-/*
- * Dump new MIPS MT state for the core. Does not leave TCs halted.
- * Takes an argument which taken to be a pre-call MVPControl value.
- */
-
-void mips_mt_regdump(unsigned long mvpctl)
-{
-       unsigned long flags;
-       unsigned long vpflags;
-       unsigned long mvpconf0;
-       int nvpe;
-       int ntc;
-       int i;
-       int tc;
-       unsigned long haltval;
-       unsigned long tcstatval;
-
-       local_irq_save(flags);
-       vpflags = dvpe();
-       printk("=== MIPS MT State Dump ===\n");
-       printk("-- Global State --\n");
-       printk("   MVPControl Passed: %08lx\n", mvpctl);
-       printk("   MVPControl Read: %08lx\n", vpflags);
-       printk("   MVPConf0 : %08lx\n", (mvpconf0 = read_c0_mvpconf0()));
-       nvpe = ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT) + 1;
-       ntc = ((mvpconf0 & MVPCONF0_PTC) >> MVPCONF0_PTC_SHIFT) + 1;
-       printk("-- per-VPE State --\n");
-       for (i = 0; i < nvpe; i++) {
-               for (tc = 0; tc < ntc; tc++) {
-                       settc(tc);
-                       if ((read_tc_c0_tcbind() & TCBIND_CURVPE) == i) {
-                               printk("  VPE %d\n", i);
-                               printk("   VPEControl : %08lx\n",
-                                      read_vpe_c0_vpecontrol());
-                               printk("   VPEConf0 : %08lx\n",
-                                      read_vpe_c0_vpeconf0());
-                               printk("   VPE%d.Status : %08lx\n",
-                                      i, read_vpe_c0_status());
-                               printk("   VPE%d.EPC : %08lx %pS\n",
-                                      i, read_vpe_c0_epc(),
-                                      (void *) read_vpe_c0_epc());
-                               printk("   VPE%d.Cause : %08lx\n",
-                                      i, read_vpe_c0_cause());
-                               printk("   VPE%d.Config7 : %08lx\n",
-                                      i, read_vpe_c0_config7());
-                               break; /* Next VPE */
-                       }
-               }
-       }
-       printk("-- per-TC State --\n");
-       for (tc = 0; tc < ntc; tc++) {
-               settc(tc);
-               if (read_tc_c0_tcbind() == read_c0_tcbind()) {
-                       /* Are we dumping ourself?  */
-                       haltval = 0; /* Then we're not halted, and mustn't be */
-                       tcstatval = flags; /* And pre-dump TCStatus is flags */
-                       printk("  TC %d (current TC with VPE EPC above)\n", tc);
-               } else {
-                       haltval = read_tc_c0_tchalt();
-                       write_tc_c0_tchalt(1);
-                       tcstatval = read_tc_c0_tcstatus();
-                       printk("  TC %d\n", tc);
-               }
-               printk("   TCStatus : %08lx\n", tcstatval);
-               printk("   TCBind : %08lx\n", read_tc_c0_tcbind());
-               printk("   TCRestart : %08lx %pS\n",
-                      read_tc_c0_tcrestart(), (void *) read_tc_c0_tcrestart());
-               printk("   TCHalt : %08lx\n", haltval);
-               printk("   TCContext : %08lx\n", read_tc_c0_tccontext());
-               if (!haltval)
-                       write_tc_c0_tchalt(0);
-       }
-       printk("===========================\n");
-       evpe(vpflags);
-       local_irq_restore(flags);
-}
-
 static int mt_opt_rpsctl = -1;
 static int mt_opt_nblsu = -1;
 static int mt_opt_forceconfig7;