From 21a83053ab619f00fce457c717c496d3b0dc7b4d Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 17 Jul 2015 21:22:42 +0200 Subject: efi: write volatile EFI variables used by systemd LoaderTimeInitUSec and LoaderTimeExecUSec are used e.g. in systemd-analyze to calculate the time spent in the firmare and barebox. LoaderDevicePartUUID is used to mount the EFI partition to /boot. Signed-off-by: Michael Olbrich Signed-off-by: Sascha Hauer --- arch/efi/efi/efi-image.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/efi/efi/efi-image.c') diff --git a/arch/efi/efi/efi-image.c b/arch/efi/efi/efi-image.c index de9b277556..b6437f4078 100644 --- a/arch/efi/efi/efi-image.c +++ b/arch/efi/efi/efi-image.c @@ -17,6 +17,7 @@ * */ +#include #include #include #include @@ -242,6 +243,10 @@ static int do_bootm_efi(struct image_data *data) boot_header->ramdisk_image); printf("...\n"); } + + efi_set_variable_usec("LoaderTimeExecUSec", &efi_systemd_vendor_guid, + get_time_ns()/1000); + linux_efi_handover(handle, boot_header); return 0; -- cgit v1.2.3