rtc_drv: defer init until first use

This patch avoids the RTC driver's aggressive polling during the
(CPU-bounded) boot of Sculpt OS. As the RTC is not needed during bootup,
this patch reduces the boot time (on Qemu) by 2-4 seconds.

Fixes #4065
This commit is contained in:
Norman Feske 2021-04-06 14:26:10 +02:00
parent 729b22f04f
commit ed9487b452

View File

@ -83,10 +83,7 @@ class Rtc::Root : public Genode::Root_component<Session_component>
:
Genode::Root_component<Session_component>(&env.ep().rpc_ep(), &md_alloc),
_env(env)
{
/* trigger initial RTC read */
Rtc::get_time(_env);
}
{ }
void notify_clients()
{