Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sw/AMI/driver/ami_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ static int do_image_download(struct amc_control_ctxt *amc_ctrl_ctxt, uint8_t *bu
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
eventfd_signal(efd_ctx);
#else
# ifdef RHEL_RELEASE_CODE
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 5)
eventfd_signal(efd_ctx);
# else
eventfd_signal(efd_ctx, bytes_to_write);
# endif
# else
eventfd_signal(efd_ctx, bytes_to_write);
# endif
#endif
}
} else {
Expand Down Expand Up @@ -153,7 +161,15 @@ static int do_image_download(struct amc_control_ctxt *amc_ctrl_ctxt, uint8_t *bu
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
eventfd_signal(efd_ctx);
#else
# ifdef RHEL_RELEASE_CODE
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 5)
eventfd_signal(efd_ctx);
# else
eventfd_signal(efd_ctx, (PDI_CHUNK_SIZE * PDI_CHUNK_MULTIPLIER));
# endif
# else
eventfd_signal(efd_ctx, (PDI_CHUNK_SIZE * PDI_CHUNK_MULTIPLIER));
# endif
#endif
}

Expand Down