diff options
author | ian <ian@FreeBSD.org> | 2014-02-26 22:06:10 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-02-26 22:06:10 +0000 |
commit | 6765240e8d836b50e2135e928456ed8923b220ad (patch) | |
tree | 85571d00e9daf458bf21ddc00bda4bff2fa22ad9 /sys/arm/freescale/imx/imx_gpt.c | |
parent | cd2fb30b688a39a31956c0559e2983d0654eeb4a (diff) | |
download | FreeBSD-src-6765240e8d836b50e2135e928456ed8923b220ad.zip FreeBSD-src-6765240e8d836b50e2135e928456ed8923b220ad.tar.gz |
Replace many pasted identical definitions of cpu_initclocks() with a common
implementation in arm/machdep.c. Most arm platforms either don't need to
do anything, or just need to call the standard eventtimer init routines.
A generic implementation that does that is now provided via weak linkage.
Any platform that needs to do something different can provide a its own
implementation to override the generic one.
Diffstat (limited to 'sys/arm/freescale/imx/imx_gpt.c')
-rw-r--r-- | sys/arm/freescale/imx/imx_gpt.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/arm/freescale/imx/imx_gpt.c b/sys/arm/freescale/imx/imx_gpt.c index f792a97..73bc8ec 100644 --- a/sys/arm/freescale/imx/imx_gpt.c +++ b/sys/arm/freescale/imx/imx_gpt.c @@ -319,17 +319,6 @@ imx_gpt_get_timerfreq(struct imx_gpt_softc *sc) return (sc->clkfreq); } -void -cpu_initclocks(void) -{ - - if (imx_gpt_sc == NULL) { - panic("%s: i.MX GPT driver has not been initialized!", __func__); - } - - cpu_initclocks_bsp(); -} - static int imx_gpt_intr(void *arg) { |