diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-07-25 21:11:50 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-08-30 12:12:17 -0400 |
commit | ade922f8e269115252d199bf6c524a10379cf716 (patch) | |
tree | 207f788bdfde0aacb6859ffca2db7d42a518021e | |
parent | c0857f5d0e747dbbf53d8f27bcf7d977aac33760 (diff) |
ARC: [ASID] Remove legacy/unused debug code
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/include/asm/mmu.h | 3 | ||||
-rw-r--r-- | arch/arc/include/asm/mmu_context.h | 11 |
2 files changed, 0 insertions, 14 deletions
diff --git a/arch/arc/include/asm/mmu.h b/arch/arc/include/asm/mmu.h index d14da3d02fbc..7165f25c0910 100644 --- a/arch/arc/include/asm/mmu.h +++ b/arch/arc/include/asm/mmu.h | |||
@@ -49,9 +49,6 @@ | |||
49 | 49 | ||
50 | typedef struct { | 50 | typedef struct { |
51 | unsigned long asid; /* Pvt Addr-Space ID for mm */ | 51 | unsigned long asid; /* Pvt Addr-Space ID for mm */ |
52 | #ifdef CONFIG_ARC_TLB_DBG | ||
53 | struct task_struct *tsk; | ||
54 | #endif | ||
55 | } mm_context_t; | 52 | } mm_context_t; |
56 | 53 | ||
57 | #ifdef CONFIG_ARC_DBG_TLB_PARANOIA | 54 | #ifdef CONFIG_ARC_DBG_TLB_PARANOIA |
diff --git a/arch/arc/include/asm/mmu_context.h b/arch/arc/include/asm/mmu_context.h index 0d71fb11b57c..a63800fd1dba 100644 --- a/arch/arc/include/asm/mmu_context.h +++ b/arch/arc/include/asm/mmu_context.h | |||
@@ -114,14 +114,6 @@ static inline void get_new_mmu_context(struct mm_struct *mm) | |||
114 | asid_mm_map[asid_cache] = mm; | 114 | asid_mm_map[asid_cache] = mm; |
115 | mm->context.asid = asid_cache; | 115 | mm->context.asid = asid_cache; |
116 | 116 | ||
117 | #ifdef CONFIG_ARC_TLB_DBG | ||
118 | pr_info("ARC_TLB_DBG: NewMM=0x%x OldMM=0x%x task_struct=0x%x Task: %s," | ||
119 | " pid:%u, assigned asid:%lu\n", | ||
120 | (unsigned int)mm, (unsigned int)prev_owner, | ||
121 | (unsigned int)(mm->context.tsk), (mm->context.tsk)->comm, | ||
122 | (mm->context.tsk)->pid, mm->context.asid); | ||
123 | #endif | ||
124 | |||
125 | write_aux_reg(ARC_REG_PID, asid_cache | MMU_ENABLE); | 117 | write_aux_reg(ARC_REG_PID, asid_cache | MMU_ENABLE); |
126 | 118 | ||
127 | local_irq_restore(flags); | 119 | local_irq_restore(flags); |
@@ -135,9 +127,6 @@ static inline int | |||
135 | init_new_context(struct task_struct *tsk, struct mm_struct *mm) | 127 | init_new_context(struct task_struct *tsk, struct mm_struct *mm) |
136 | { | 128 | { |
137 | mm->context.asid = NO_ASID; | 129 | mm->context.asid = NO_ASID; |
138 | #ifdef CONFIG_ARC_TLB_DBG | ||
139 | mm->context.tsk = tsk; | ||
140 | #endif | ||
141 | return 0; | 130 | return 0; |
142 | } | 131 | } |
143 | 132 | ||