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.
This commit is contained in:
parent
553b3bb89d
commit
1f23f8b0fe
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,7 +61,12 @@ void imx_wdog_init_last_reset(vm_offset_t _wdsr_phys);
|
|||||||
#define IMXSOC_FAMSHIFT 28
|
#define IMXSOC_FAMSHIFT 28
|
||||||
|
|
||||||
u_int imx_soc_type(void);
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user