CVSROOT: /home/cvs
Module name: malta
Changes by: beth@ftp.linux-mips.org 05/06/10 16:26:45
Removed files:
linux/arch/mips/kernel: Tag: MaltaRef_2_6 mips_mt.c
Log message:
* arch/mips/kernel/mips_mt.c: Remove unused file.
diff -urN malta/linux/arch/mips/kernel/mips_mt.c
malta/linux/arch/mips/kernel/mips_mt.c
--- malta/linux/arch/mips/kernel/Attic/mips_mt.c 2005-06-10
16:26:45.190584000 +0100 1.1.2.1
+++ malta/linux/arch/mips/kernel/Attic/mips_mt.c 1970/01/01 00:00:00+0100
@@ -1,98 +0,0 @@
-/*
- * General MIPS MT support routines, usable in AP/SP, SMVP, or SMTC kernels
- * Copyright (C) 2005 Mips Technologies, Inc
- */
-
-#include <linux/kernel.h>
-#include <linux/sched.h>
-#include <linux/cpumask.h>
-#include <linux/interrupt.h>
-
-#include <asm/cpu.h>
-#include <asm/processor.h>
-#include <asm/atomic.h>
-#include <asm/system.h>
-#include <asm/hardirq.h>
-#include <asm/mmu_context.h>
-#include <asm/smp.h>
-#include <asm/mipsmtregs.h>
-#include <asm/cacheflush.h>
-
-/*
- * Dump new MIPS MT state for the core. Does *not* halt TCs.
- */
-
-void mips_mt_regdump()
-{
- int flags;
- int vpflags;
- int mvpconf0;
- int nvpe;
- int ntc;
- int i;
- int tc;
- unsigned long haltval;
- unsigned long tcstatval;
-#ifdef CONFIG_MIPS_MT_SMTC
- void smtc_soft_dump(void);
-#endif /* CONFIG_MIPT_MT_SMTC */
-
- local_irq_save(flags);
- vpflags = dvpe();
-
- printk("=== MIPS MT State Dump ===\n");
- printk("-- Global State --\n");
- printk(" MVPControl : %08x\n", vpflags);
- printk(" MVPConf0 : %08x\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.Cause : %08lx\n", i, read_vpe_c0_cause());
- 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)\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\n", read_tc_c0_tcrestart());
- printk(" TCHalt : %08lx\n", haltval);
- printk(" TCContext : %08lx\n", read_tc_c0_tccontext());
- if(!haltval) write_tc_c0_tchalt(0);
- }
-#ifdef CONFIG_MIPS_MT_SMTC
- smtc_soft_dump();
-#endif /* CONFIG_MIPT_MT_SMTC */
- printk("===========================\n");
- evpe(vpflags);
- local_irq_restore(flags);
-}
-
-asmlinkage void noinline mips_mt_inthazard(void)
-{
- __asm__ __volatile__("jr.hb $ra\n\t");
-}
-
-
-
|