git: 97663c8d9e89 - main - get_cachetype_cp15: eliminate write only multilier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:00 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=97663c8d9e898d176d0b36dcd35f30ec1b874d2f
commit 97663c8d9e898d176d0b36dcd35f30ec1b874d2f
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-04 23:53:58 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:29:06 +0000
get_cachetype_cp15: eliminate write only multilier
Sponsored by: Netflix
---
sys/arm/arm/cpufunc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c
index 3f773a3ece72..7a857f8997e9 100644
--- a/sys/arm/arm/cpufunc.c
+++ b/sys/arm/arm/cpufunc.c
@@ -146,7 +146,6 @@ get_cachetype_cp15(void)
{
u_int ctype, dsize, cpuid;
u_int clevel, csize, i, sel;
- u_int multiplier;
u_char type;
ctype = cp15_ctr_get();
@@ -193,7 +192,6 @@ get_cachetype_cp15(void)
*/
dsize = CPU_CT_DSIZE(ctype);
- multiplier = (dsize & CPU_CT_xSIZE_M) ? 3 : 2;
arm_dcache_align = 1U << (CPU_CT_xSIZE_LEN(dsize) + 3);
if (CPU_CT_xSIZE_ASSOC(dsize) == 0) {
if (dsize & CPU_CT_xSIZE_M)