From 609d1e803baf519487233b765eb487f9ec227a18 Mon Sep 17 00:00:00 2001 From: "Gleb O. Raiko" Date: Thu, 7 Oct 1999 07:34:24 +0000 Subject: Don't count VCEI/VCED if the proc fs support isn't choosen --- arch/mips/kernel/head.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'arch/mips') diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S index f6af1d6be..11dd160ec 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S @@ -1,4 +1,4 @@ -/* $Id: head.S,v 1.13 1999/08/18 23:37:43 ralf Exp $ +/* $Id: head.S,v 1.14 1999/08/20 21:59:02 ralf Exp $ * * arch/mips/kernel/head.S * @@ -341,23 +341,25 @@ handle_vced: li k1, -4 and k0, k1 mtc0 zero, CP0_TAGLO - // nop;nop cache Index_Store_Tag_D,(k0) - // nop;nop cache Hit_Writeback_Inv_SD,(k0) +#ifdef CONFIG_PROC_FS lui k0, %hi(vced_count) lw k1, %lo(vced_count)(k0) addiu k1, 1 sw k1, %lo(vced_count)(k0) +#endif eret handle_vcei: mfc0 k0, CP0_BADVADDR cache Hit_Writeback_Inv_SD,(k0) # also cleans pi +#ifdef CONFIG_PROC_FS lui k0, %hi(vcei_count) lw k1, %lo(vcei_count)(k0) addiu k1, 1 sw k1, %lo(vcei_count)(k0) +#endif eret END(except_vec3_r4000) -- cgit v1.2.3