forked from amzn/amzn-drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux/ena: Add msecs since last interrupt info for debug
Added last_intr_jiffies field in struct ena_napi which holds jiffies value from the last occurrence of an interrupt (when last interrupt handler was triggered), or 0 if no interrupt has ever arrived. Removed first_interrupt field from struct ena_napi, since this information can be provided by checking last_intr_jiffies value: If the value of last_intr_jiffies is 0, it indicates that there was no first interrupt. Conversely, if the value is non-zero, it implies that first interrupt was received. The READ_ONCE macro is employed to ensure that values are re-read during runtime in the loop even if the compiler statically analyzed them and determined that they are not altered within the loop. Also updated a message to include msecs since last napi. Signed-off-by: Shahar Itzko <[email protected]>
- Loading branch information
Osama Abboud
committed
Sep 4, 2023
1 parent
5366abe
commit 2819763
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters