Date: Wed, 24 Jan 2018 18:10:11 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328349 - head/sys/arm/freescale/imx Message-ID: <201801241810.w0OIAB7l068466@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801241810.w0OIAB7l068466>