diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-03-24 18:40:22 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-04-04 11:03:37 +0200 |
commit | ee3db4fc04714c80196e49f8f3a5f157f20d2862 (patch) | |
tree | 1526490249531271f2ce1234aa2e2d413fc6f80f /lib | |
parent | 0176330ee5b6a316b688787d10f0265215e53d33 (diff) | |
download | u-boot-ee3db4fc04714c80196e49f8f3a5f157f20d2862.zip u-boot-ee3db4fc04714c80196e49f8f3a5f157f20d2862.tar.gz u-boot-ee3db4fc04714c80196e49f8f3a5f157f20d2862.tar.bz2 |
efi_loader: use TPL_NOTIFY for network timer event
We use a timer to poll the network.
iPXE is used for booting from iSCSI drives. It has been changed to run at
TPL_CALLBACK most of the time (which is not what the UEFI spec
recommends).
By changing our timer to TPL_NOTIFY we can ensure that it is nevertheless
executed.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_net.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index b88dc91..3d860e6 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@ -353,8 +353,10 @@ efi_status_t efi_net_register(void) * * The notification function is used to check if a new network packet * has been received. + * + * iPXE is running at TPL_CALLBACK most of the time. Use a higher TPL. */ - r = efi_create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, TPL_CALLBACK, + r = efi_create_event(EVT_TIMER | EVT_NOTIFY_SIGNAL, TPL_NOTIFY, efi_network_timer_notify, NULL, NULL, &network_timer_event); if (r != EFI_SUCCESS) { |