summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-10-03 13:59:15 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-10-03 13:59:15 +0000
commitdd6f0c84fe0d2aeb4f6e6e7858214704f68e747f (patch)
tree7299a5b11245e42baa8352476011bbd60fee1208
parent8805e5482310b4ec22a054bfa7dbb9a1d50add33 (diff)
downloadFreeBSD-src-dd6f0c84fe0d2aeb4f6e6e7858214704f68e747f.zip
FreeBSD-src-dd6f0c84fe0d2aeb4f6e6e7858214704f68e747f.tar.gz
Remove remaining bits of performance counter support.
Submitted by: Tom Judge <tom at tomjudge.com>
-rw-r--r--sys/arm/arm/cpufunc.c24
-rw-r--r--sys/arm/xscale/i80321/i80321_timer.c2
2 files changed, 0 insertions, 26 deletions
diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c
index 7389095..18291a1 100644
--- a/sys/arm/arm/cpufunc.c
+++ b/sys/arm/arm/cpufunc.c
@@ -1088,18 +1088,6 @@ set_cpufuncs()
i80200_icu_init();
- /*
- * Reset the Performance Monitoring Unit to a
- * pristine state:
- * - CCNT, PMN0, PMN1 reset to 0
- * - overflow indications cleared
- * - all counters disabled
- */
- __asm __volatile("mcr p14, 0, %0, c0, c0, 0"
- :
- : "r" (PMNC_P|PMNC_C|PMNC_PMN0_IF|PMNC_PMN1_IF|
- PMNC_CC_IF));
-
#if defined(XSCALE_CCLKCFG)
/*
* Crank CCLKCFG to maximum legal value.
@@ -1139,18 +1127,6 @@ set_cpufuncs()
if (cputype == CPU_ID_80321_400 || cputype == CPU_ID_80321_600 ||
cputype == CPU_ID_80321_400_B0 || cputype == CPU_ID_80321_600_B0 ||
cputype == CPU_ID_80219_400 || cputype == CPU_ID_80219_600) {
- /*
- * Reset the Performance Monitoring Unit to a
- * pristine state:
- * - CCNT, PMN0, PMN1 reset to 0
- * - overflow indications cleared
- * - all counters disabled
- */
- __asm __volatile("mcr p14, 0, %0, c0, c0, 0"
- :
- : "r" (PMNC_P|PMNC_C|PMNC_PMN0_IF|PMNC_PMN1_IF|
- PMNC_CC_IF));
-
cpufuncs = xscale_cpufuncs;
cpu_reset_needs_v4_MMU_disable = 1; /* XScale needs it */
get_cachetype_cp15();
diff --git a/sys/arm/xscale/i80321/i80321_timer.c b/sys/arm/xscale/i80321/i80321_timer.c
index 7b2fdcb..78492b8 100644
--- a/sys/arm/xscale/i80321/i80321_timer.c
+++ b/sys/arm/xscale/i80321/i80321_timer.c
@@ -66,8 +66,6 @@ __FBSDID("$FreeBSD$");
definitions overrides the ones from i80321reg.h
*/
#endif
-#include <arm/xscale/xscalevar.h>
-
#include "opt_timer.h"
void (*i80321_hardclock_hook)(void) = NULL;
OpenPOWER on IntegriCloud