]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: correctly implement 100ns conversion
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Tue, 18 Jul 2017 18:17:23 +0000 (20:17 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 19 Jul 2017 12:36:14 +0000 (14:36 +0200)
commitb36db1d983375377bbfc4570faad5e1a13dddd84
treea9ace5282d8225e96e03eeaec99efa948b09bcf8
parentb5e2cc5fac10a835f84f5fa535d14f0939021fdb
efi_loader: correctly implement 100ns conversion

In efi_set_timer we receive the trigger time in intervals of 100 ns.
We should convert it to intervals of 1000 ns by 64bit division.

The patch supplies function efi_div10 that uses multiplication to
implement the missing 64 bit division.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_boottime.c