diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-05-29 05:16:42 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-30 07:05:28 -0400 |
commit | d5c704d525aa5e2e7b2bdfbe3e99e4621e29d6bf (patch) | |
tree | d511938083ebcc843a2862acf1b4c2319210947e /arch/mips/kvm/kvm_mips_emul.c | |
parent | 3d654833713ddb0464cbaee14fe75ef1e4e2ded0 (diff) |
MIPS: KVM: Remove ifdef DEBUG around kvm_debug
kvm_debug() uses pr_debug() which is already compiled out in the absence
of a DEBUG define, so remove the unnecessary ifdef DEBUG lines around
kvm_debug() calls which are littered around arch/mips/kvm/.
As well as generally cleaning up, this prevents future bit-rot due to
DEBUG not being commonly used.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/kvm_mips_emul.c')
-rw-r--r-- | arch/mips/kvm/kvm_mips_emul.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/kvm/kvm_mips_emul.c b/arch/mips/kvm/kvm_mips_emul.c index c81ab791b8f2..8d4840090082 100644 --- a/arch/mips/kvm/kvm_mips_emul.c +++ b/arch/mips/kvm/kvm_mips_emul.c | |||
@@ -2319,11 +2319,9 @@ kvm_mips_handle_tlbmiss(unsigned long cause, uint32_t *opc, | |||
2319 | er = EMULATE_FAIL; | 2319 | er = EMULATE_FAIL; |
2320 | } | 2320 | } |
2321 | } else { | 2321 | } else { |
2322 | #ifdef DEBUG | ||
2323 | kvm_debug | 2322 | kvm_debug |
2324 | ("Injecting hi: %#lx, lo0: %#lx, lo1: %#lx into shadow host TLB\n", | 2323 | ("Injecting hi: %#lx, lo0: %#lx, lo1: %#lx into shadow host TLB\n", |
2325 | tlb->tlb_hi, tlb->tlb_lo0, tlb->tlb_lo1); | 2324 | tlb->tlb_hi, tlb->tlb_lo0, tlb->tlb_lo1); |
2326 | #endif | ||
2327 | /* OK we have a Guest TLB entry, now inject it into the shadow host TLB */ | 2325 | /* OK we have a Guest TLB entry, now inject it into the shadow host TLB */ |
2328 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb, NULL, | 2326 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb, NULL, |
2329 | NULL); | 2327 | NULL); |