svn commit: r337762 - in head/sys/arm: arm include

Andrew Turner andrew at FreeBSD.org
Tue Aug 14 16:01:27 UTC 2018


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);


More information about the svn-src-all mailing list