Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 04:32:00 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 97663c8d9e89 - main - get_cachetype_cp15: eliminate write only multilier
Message-ID:  <202204050432.2354W0na005396@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354W0na005396>