svn commit: r328349 - head/sys/arm/freescale/imx

Ian Lepore ian at FreeBSD.org
Wed Jan 24 18:10:12 UTC 2018


Author: ian
Date: Wed Jan 24 18:10:11 2018
New Revision: 328349
URL: https://svnweb.freebsd.org/changeset/base/328349

Log:
  Make the trivial imx_soc_family() function an inline in imx_machdep.h.
  
  The imx_machdep.c file is on the fast path to non-existance and this would
  be the only thing left in it after some watchdog changes are completed.

Modified:
  head/sys/arm/freescale/imx/imx_machdep.c
  head/sys/arm/freescale/imx/imx_machdep.h

Modified: head/sys/arm/freescale/imx/imx_machdep.c
==============================================================================
--- head/sys/arm/freescale/imx/imx_machdep.c	Wed Jan 24 18:09:44 2018	(r328348)
+++ head/sys/arm/freescale/imx/imx_machdep.c	Wed Jan 24 18:10:11 2018	(r328349)
@@ -105,10 +105,3 @@ imx_wdog_init_last_reset(vm_offset_t wdsr_phys)
 	}
 }
 
-u_int
-imx_soc_family(void)
-{
-	return (imx_soc_type() >> IMXSOC_FAMSHIFT);
-}
-
-

Modified: head/sys/arm/freescale/imx/imx_machdep.h
==============================================================================
--- head/sys/arm/freescale/imx/imx_machdep.h	Wed Jan 24 18:09:44 2018	(r328348)
+++ head/sys/arm/freescale/imx/imx_machdep.h	Wed Jan 24 18:10:11 2018	(r328349)
@@ -61,7 +61,12 @@ void imx_wdog_init_last_reset(vm_offset_t _wdsr_phys);
 #define	IMXSOC_FAMSHIFT	28
 
 u_int imx_soc_type(void);
-u_int imx_soc_family(void);
+
+static inline u_int
+imx_soc_family(void)
+{
+	return (imx_soc_type() >> IMXSOC_FAMSHIFT);
+}
 
 #endif
 


More information about the svn-src-all mailing list