Skip to content

Commit 3fd1966

Browse files
gscuitsbogend
authored andcommitted
MIPS: MT: Remove unused function mips_mt_regdump()
The mips_mt_regdump() has not been used since commit b633648 ("MIPS: MT: Remove SMTC support"), so remove it. Signed-off-by: Gaosheng Cui <[email protected]> Reviewed-by: Ricardo B. Marliere <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 7569c9f commit 3fd1966

File tree

2 files changed

+0
-79
lines changed

2 files changed

+0
-79
lines changed

arch/mips/include/asm/mips_mt.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ extern int vpelimit;
1717
extern cpumask_t mt_fpu_cpumask;
1818
extern unsigned long mt_fpemul_threshold;
1919

20-
extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value);
21-
2220
#ifdef CONFIG_MIPS_MT
2321
extern void mips_mt_set_cpuoptions(void);
2422
#else

arch/mips/kernel/mips-mt.c

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -43,83 +43,6 @@ static int __init maxtcs(char *str)
4343

4444
__setup("maxtcs=", maxtcs);
4545

46-
/*
47-
* Dump new MIPS MT state for the core. Does not leave TCs halted.
48-
* Takes an argument which taken to be a pre-call MVPControl value.
49-
*/
50-
51-
void mips_mt_regdump(unsigned long mvpctl)
52-
{
53-
unsigned long flags;
54-
unsigned long vpflags;
55-
unsigned long mvpconf0;
56-
int nvpe;
57-
int ntc;
58-
int i;
59-
int tc;
60-
unsigned long haltval;
61-
unsigned long tcstatval;
62-
63-
local_irq_save(flags);
64-
vpflags = dvpe();
65-
printk("=== MIPS MT State Dump ===\n");
66-
printk("-- Global State --\n");
67-
printk(" MVPControl Passed: %08lx\n", mvpctl);
68-
printk(" MVPControl Read: %08lx\n", vpflags);
69-
printk(" MVPConf0 : %08lx\n", (mvpconf0 = read_c0_mvpconf0()));
70-
nvpe = ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT) + 1;
71-
ntc = ((mvpconf0 & MVPCONF0_PTC) >> MVPCONF0_PTC_SHIFT) + 1;
72-
printk("-- per-VPE State --\n");
73-
for (i = 0; i < nvpe; i++) {
74-
for (tc = 0; tc < ntc; tc++) {
75-
settc(tc);
76-
if ((read_tc_c0_tcbind() & TCBIND_CURVPE) == i) {
77-
printk(" VPE %d\n", i);
78-
printk(" VPEControl : %08lx\n",
79-
read_vpe_c0_vpecontrol());
80-
printk(" VPEConf0 : %08lx\n",
81-
read_vpe_c0_vpeconf0());
82-
printk(" VPE%d.Status : %08lx\n",
83-
i, read_vpe_c0_status());
84-
printk(" VPE%d.EPC : %08lx %pS\n",
85-
i, read_vpe_c0_epc(),
86-
(void *) read_vpe_c0_epc());
87-
printk(" VPE%d.Cause : %08lx\n",
88-
i, read_vpe_c0_cause());
89-
printk(" VPE%d.Config7 : %08lx\n",
90-
i, read_vpe_c0_config7());
91-
break; /* Next VPE */
92-
}
93-
}
94-
}
95-
printk("-- per-TC State --\n");
96-
for (tc = 0; tc < ntc; tc++) {
97-
settc(tc);
98-
if (read_tc_c0_tcbind() == read_c0_tcbind()) {
99-
/* Are we dumping ourself? */
100-
haltval = 0; /* Then we're not halted, and mustn't be */
101-
tcstatval = flags; /* And pre-dump TCStatus is flags */
102-
printk(" TC %d (current TC with VPE EPC above)\n", tc);
103-
} else {
104-
haltval = read_tc_c0_tchalt();
105-
write_tc_c0_tchalt(1);
106-
tcstatval = read_tc_c0_tcstatus();
107-
printk(" TC %d\n", tc);
108-
}
109-
printk(" TCStatus : %08lx\n", tcstatval);
110-
printk(" TCBind : %08lx\n", read_tc_c0_tcbind());
111-
printk(" TCRestart : %08lx %pS\n",
112-
read_tc_c0_tcrestart(), (void *) read_tc_c0_tcrestart());
113-
printk(" TCHalt : %08lx\n", haltval);
114-
printk(" TCContext : %08lx\n", read_tc_c0_tccontext());
115-
if (!haltval)
116-
write_tc_c0_tchalt(0);
117-
}
118-
printk("===========================\n");
119-
evpe(vpflags);
120-
local_irq_restore(flags);
121-
}
122-
12346
static int mt_opt_rpsctl = -1;
12447
static int mt_opt_nblsu = -1;
12548
static int mt_opt_forceconfig7;

0 commit comments

Comments
 (0)