diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-11-19 02:50:48 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-11-19 02:50:48 +0000 |
commit | a28c28e6efa71519e61c7c270168f330e6370862 (patch) | |
tree | 31f909b92f328a80b3bb642e4d7874e63153f1be /sys/arm | |
parent | bc7ed46b635eec9f9df97ed6ae6fc5e229f182a6 (diff) | |
download | src-a28c28e6efa71519e61c7c270168f330e6370862.tar.gz src-a28c28e6efa71519e61c7c270168f330e6370862.zip |
Remove NO_EVENTTIMERS support
The arm configs that required it have been removed from the tree.
Removing this option makes the callout code easier to read and
discourages developers from adding new configs without eventtimer
drivers.
Reviewed by: ian, imp, mav
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27270
Notes
Notes:
svn path=/head/; revision=367826
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/machdep.c | 21 | ||||
-rw-r--r-- | sys/arm/include/machdep.h | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 4a9822f90835..7b4974a839db 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -48,7 +48,6 @@ #include "opt_kstack_pages.h" #include "opt_platform.h" #include "opt_sched.h" -#include "opt_timer.h" #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -304,16 +303,12 @@ cpu_idle(int busy) CTR2(KTR_SPARE2, "cpu_idle(%d) at %d", busy, curcpu); spinlock_enter(); -#ifndef NO_EVENTTIMERS if (!busy) cpu_idleclock(); -#endif if (!sched_runnable()) cpu_sleep(0); -#ifndef NO_EVENTTIMERS if (!busy) cpu_activeclock(); -#endif spinlock_exit(); CTR2(KTR_SPARE2, "cpu_idle(%d) at %d done", busy, curcpu); } @@ -325,21 +320,6 @@ cpu_idle_wakeup(int cpu) return (0); } -#ifdef NO_EVENTTIMERS -/* - * Most ARM platforms don't need to do anything special to init their clocks - * (they get intialized during normal device attachment), and by not defining a - * cpu_initclocks() function they get this generic one. Any platform that needs - * to do something special can just provide their own implementation, which will - * override this one due to the weak linkage. - */ -void -arm_generic_initclocks(void) -{ -} -__weak_reference(arm_generic_initclocks, cpu_initclocks); - -#else void cpu_initclocks(void) { @@ -353,7 +333,6 @@ cpu_initclocks(void) cpu_initclocks_bsp(); #endif } -#endif #ifdef PLATFORM void diff --git a/sys/arm/include/machdep.h b/sys/arm/include/machdep.h index ebaff1a48a05..d82b1363632e 100644 --- a/sys/arm/include/machdep.h +++ b/sys/arm/include/machdep.h @@ -39,7 +39,6 @@ vm_offset_t parse_boot_param(struct arm_boot_params *abp); void arm_parse_fdt_bootargs(void); void arm_print_kenv(void); -void arm_generic_initclocks(void); int arm_get_vfpstate(struct thread *td, void *args); /* Board-specific attributes */ |