mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
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:
parent
729b22f04f
commit
ed9487b452
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user