From ed9487b45200541cf9614fd96c9ea9d925cdc6fb Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 6 Apr 2021 14:26:10 +0200 Subject: [PATCH] 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 --- repos/os/src/drivers/rtc/main.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/repos/os/src/drivers/rtc/main.cc b/repos/os/src/drivers/rtc/main.cc index 3ec7897722..f296424a51 100644 --- a/repos/os/src/drivers/rtc/main.cc +++ b/repos/os/src/drivers/rtc/main.cc @@ -83,10 +83,7 @@ class Rtc::Root : public Genode::Root_component : Genode::Root_component(&env.ep().rpc_ep(), &md_alloc), _env(env) - { - /* trigger initial RTC read */ - Rtc::get_time(_env); - } + { } void notify_clients() {