Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/mpcore_timer.c
Show First 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static devclass_t arm_tmr_devclass; | static devclass_t arm_tmr_devclass; | ||||
EARLY_DRIVER_MODULE(mp_tmr, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0, | EARLY_DRIVER_MODULE(mp_tmr, simplebus, arm_tmr_driver, arm_tmr_devclass, 0, 0, | ||||
BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); | BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); | ||||
EARLY_DRIVER_MODULE(mp_tmr, ofwbus, arm_tmr_driver, arm_tmr_devclass, 0, 0, | EARLY_DRIVER_MODULE(mp_tmr, ofwbus, arm_tmr_driver, arm_tmr_devclass, 0, 0, | ||||
BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); | BUS_PASS_TIMER + BUS_PASS_ORDER_MIDDLE); | ||||
SIMPLEBUS_PNP_INFO(compat_data); | |||||
/* | /* | ||||
* Handle a change in clock frequency. The mpcore timer runs at half the CPU | * Handle a change in clock frequency. The mpcore timer runs at half the CPU | ||||
* frequency. When the CPU frequency changes due to power-saving or thermal | * frequency. When the CPU frequency changes due to power-saving or thermal | ||||
* managment, the platform-specific code that causes the frequency change calls | * managment, the platform-specific code that causes the frequency change calls | ||||
* this routine to inform the clock driver, and we in turn inform the event | * this routine to inform the clock driver, and we in turn inform the event | ||||
* timer system, which actually updates the value in et->frequency for us and | * timer system, which actually updates the value in et->frequency for us and | ||||
* reschedules the current event(s) in a way that's atomic with respect to | * reschedules the current event(s) in a way that's atomic with respect to | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |