drivers/timer/hpet: Add noop SMP initialization function

This is intended to initialize CPU-local timer devices, but HPET is
global so we have nothing to do.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2019-02-14 08:19:32 -08:00 committed by Anas Nashif
commit 0a2d2413e0

View file

@ -98,6 +98,14 @@ int z_clock_driver_init(struct device *device)
return 0;
}
void smp_timer_init(void)
{
/* Noop, the HPET is a single system-wide device and it's
* configured to deliver interrupts to every CPU, so there's
* nothing to do at initialization on auxiliary CPUs.
*/
}
void z_clock_set_timeout(s32_t ticks, bool idle)
{
ARG_UNUSED(idle);