aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/arm/mpcore_timer.c
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-02-26 22:06:10 +0000
committerIan Lepore <ian@FreeBSD.org>2014-02-26 22:06:10 +0000
commitf0455d6562807f6477def944d2d2c525f1fc300e (patch)
tree85571d00e9daf458bf21ddc00bda4bff2fa22ad9 /sys/arm/arm/mpcore_timer.c
parent85bf1d2f07cbab4936820178338f5873f7e74b87 (diff)
downloadsrc-f0455d6562807f6477def944d2d2c525f1fc300e.tar.gz
src-f0455d6562807f6477def944d2d2c525f1fc300e.zip
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.
Notes
Notes: svn path=/head/; revision=262534
Diffstat (limited to 'sys/arm/arm/mpcore_timer.c')
-rw-r--r--sys/arm/arm/mpcore_timer.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/arm/arm/mpcore_timer.c b/sys/arm/arm/mpcore_timer.c
index 5024efe1254a..719685980e57 100644
--- a/sys/arm/arm/mpcore_timer.c
+++ b/sys/arm/arm/mpcore_timer.c
@@ -359,25 +359,6 @@ static devclass_t arm_tmr_devclass;
DRIVER_MODULE(mp_tmr, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0);
/**
- * cpu_initclocks - called by system to initialise the cpu clocks
- *
- * This is a boilerplat function, most of the setup has already been done
- * when the driver was attached. Therefore this function must only be called
- * after the driver is attached.
- *
- * RETURNS
- * nothing
- */
-void
-cpu_initclocks(void)
-{
- if (PCPU_GET(cpuid) == 0)
- cpu_initclocks_bsp();
- else
- cpu_initclocks_ap();
-}
-
-/**
* DELAY - Delay for at least usec microseconds.
* @usec: number of microseconds to delay by
*