summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmel <mmel@FreeBSD.org>2016-02-02 10:50:32 +0000
committermmel <mmel@FreeBSD.org>2016-02-02 10:50:32 +0000
commit7e1c03eb21e331df8f1351de93f84e377f7a6435 (patch)
treef7dc024df7a3b113359d16bf45d4a4118e23c49f
parentc2491870ac4a7747285b738c2ae6d9f6d6cba437 (diff)
downloadFreeBSD-src-7e1c03eb21e331df8f1351de93f84e377f7a6435.zip
FreeBSD-src-7e1c03eb21e331df8f1351de93f84e377f7a6435.tar.gz
ARM: Remove last unused function, cpu_flush_prefetchbuf(),
from cpu_functions table.
-rw-r--r--sys/arm/arm/cpufunc.c9
-rw-r--r--sys/arm/arm/cpufunc_asm_arm11x6.S5
-rw-r--r--sys/arm/arm/cpufunc_asm_fa526.S6
-rw-r--r--sys/arm/include/cpufunc.h4
4 files changed, 0 insertions, 24 deletions
diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c
index 2ffef6b..422a1a5 100644
--- a/sys/arm/arm/cpufunc.c
+++ b/sys/arm/arm/cpufunc.c
@@ -140,7 +140,6 @@ struct cpu_functions arm9_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
(void *)cpufunc_nullop, /* sleep */
@@ -194,7 +193,6 @@ struct cpu_functions armv5_ec_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
(void *)cpufunc_nullop, /* sleep */
@@ -246,7 +244,6 @@ struct cpu_functions sheeva_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
sheeva_cpu_sleep, /* sleep */
@@ -298,7 +295,6 @@ struct cpu_functions pj4bv7_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv7_drain_writebuf, /* drain_writebuf */
(void *)cpufunc_nullop, /* sleep */
@@ -352,7 +348,6 @@ struct cpu_functions xscale_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
xscale_cpu_sleep, /* sleep */
@@ -406,7 +401,6 @@ struct cpu_functions xscalec3_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
xscale_cpu_sleep, /* sleep */
@@ -459,7 +453,6 @@ struct cpu_functions fa526_cpufuncs = {
/* Other functions */
- fa526_flush_prefetchbuf, /* flush_prefetchbuf */
armv4_drain_writebuf, /* drain_writebuf */
fa526_cpu_sleep, /* sleep */
@@ -513,7 +506,6 @@ struct cpu_functions arm1176_cpufuncs = {
/* Other functions */
- arm11x6_flush_prefetchbuf, /* flush_prefetchbuf */
arm11_drain_writebuf, /* drain_writebuf */
arm11x6_sleep, /* sleep */
@@ -574,7 +566,6 @@ struct cpu_functions cortexa_cpufuncs = {
/* Other functions */
- cpufunc_nullop, /* flush_prefetchbuf */
armv7_drain_writebuf, /* drain_writebuf */
armv7_cpu_sleep, /* sleep */
diff --git a/sys/arm/arm/cpufunc_asm_arm11x6.S b/sys/arm/arm/cpufunc_asm_arm11x6.S
index b88c0fd..be6d530 100644
--- a/sys/arm/arm/cpufunc_asm_arm11x6.S
+++ b/sys/arm/arm/cpufunc_asm_arm11x6.S
@@ -138,11 +138,6 @@ ENTRY_NP(arm11x6_icache_sync_all)
RET
END(arm11x6_icache_sync_all)
-ENTRY_NP(arm11x6_flush_prefetchbuf)
- mcr p15, 0, r0, c7, c5, 4 /* Flush Prefetch Buffer */
- RET
-END(arm11x6_flush_prefetchbuf)
-
ENTRY_NP(arm11x6_icache_sync_range)
add r1, r1, r0
sub r1, r1, #1
diff --git a/sys/arm/arm/cpufunc_asm_fa526.S b/sys/arm/arm/cpufunc_asm_fa526.S
index 1fcca21..38cb11a 100644
--- a/sys/arm/arm/cpufunc_asm_fa526.S
+++ b/sys/arm/arm/cpufunc_asm_fa526.S
@@ -72,12 +72,6 @@ ENTRY(fa526_cpu_sleep)
mov pc, lr
END(fa526_cpu_sleep)
-ENTRY(fa526_flush_prefetchbuf)
- mov r0, #0
- mcr p15, 0, r0, c7, c5, 4 /* Pre-fetch flush */
- mov pc, lr
-END(fa526_flush_prefetchbuf)
-
/*
* Cache functions
*/
diff --git a/sys/arm/include/cpufunc.h b/sys/arm/include/cpufunc.h
index 48d1c00..b56d1c2 100644
--- a/sys/arm/include/cpufunc.h
+++ b/sys/arm/include/cpufunc.h
@@ -149,7 +149,6 @@ struct cpu_functions {
/* Other functions */
- void (*cf_flush_prefetchbuf) (void);
void (*cf_drain_writebuf) (void);
void (*cf_sleep) (int mode);
@@ -191,7 +190,6 @@ extern u_int cputype;
#define cpu_l2cache_wbinv_range(a, s) cpufuncs.cf_l2cache_wbinv_range((a), (s))
#define cpu_l2cache_drain_writebuf() cpufuncs.cf_l2cache_drain_writebuf()
-#define cpu_flush_prefetchbuf() cpufuncs.cf_flush_prefetchbuf()
#define cpu_drain_writebuf() cpufuncs.cf_drain_writebuf()
#define cpu_sleep(m) cpufuncs.cf_sleep(m)
@@ -215,7 +213,6 @@ void fa526_setttb (u_int ttb);
void fa526_context_switch (void);
void fa526_cpu_sleep (int);
void fa526_tlb_flushID_SE (u_int);
-void fa526_flush_prefetchbuf (void);
void fa526_icache_sync_all (void);
void fa526_icache_sync_range(vm_offset_t start, vm_size_t end);
@@ -327,7 +324,6 @@ void arm11x6_setttb (u_int);
void arm11x6_idcache_wbinv_all (void);
void arm11x6_dcache_wbinv_all (void);
void arm11x6_icache_sync_all (void);
-void arm11x6_flush_prefetchbuf (void);
void arm11x6_icache_sync_range (vm_offset_t, vm_size_t);
void arm11x6_idcache_wbinv_range (vm_offset_t, vm_size_t);
void arm11x6_setup (void);
OpenPOWER on IntegriCloud