Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2018 16:01:26 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337762 - in head/sys/arm: arm include
Message-ID:  <201808141601.w7EG1QA2070373@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Aug 14 16:01:25 2018
New Revision: 337762
URL: https://svnweb.freebsd.org/changeset/base/337762

Log:
  Remove cpu_pfr from arm. It's unused.

Modified:
  head/sys/arm/arm/identcpu-v4.c
  head/sys/arm/include/cpufunc.h

Modified: head/sys/arm/arm/identcpu-v4.c
==============================================================================
--- head/sys/arm/arm/identcpu-v4.c	Tue Aug 14 15:48:13 2018	(r337761)
+++ head/sys/arm/arm/identcpu-v4.c	Tue Aug 14 16:01:25 2018	(r337762)
@@ -252,27 +252,6 @@ print_enadis(int enadis, char *s)
 
 enum cpu_class cpu_class = CPU_CLASS_NONE;
 
-u_int cpu_pfr(int num)
-{
-	u_int feat;
-
-	switch (num) {
-	case 0:
-		__asm __volatile("mrc p15, 0, %0, c0, c1, 0"
-		    : "=r" (feat));
-		break;
-	case 1:
-		__asm __volatile("mrc p15, 0, %0, c0, c1, 1"
-		    : "=r" (feat));
-		break;
-	default:
-		panic("Processor Feature Register %d not implemented", num);
-		break;
-	}
-
-	return (feat);
-}
-
 void
 identify_arm_cpu(void)
 {

Modified: head/sys/arm/include/cpufunc.h
==============================================================================
--- head/sys/arm/include/cpufunc.h	Tue Aug 14 15:48:13 2018	(r337761)
+++ head/sys/arm/include/cpufunc.h	Tue Aug 14 16:01:25 2018	(r337762)
@@ -210,7 +210,6 @@ int	set_cpufuncs		(void);
 void	cpufunc_nullop		(void);
 u_int	cpufunc_control		(u_int clear, u_int bic);
 void	cpu_domains		(u_int domains);
-u_int	cpu_pfr			(int);
 
 #if defined(CPU_ARM9E)
 void	arm9_tlb_flushID_SE	(u_int va);



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