Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107748006
D32246.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D32246.diff
View Options
diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -262,7 +262,7 @@
static int
nvme_ctrlr_wait_for_ready(struct nvme_controller *ctrlr, int desired_val)
{
- int timeout = ticks + (uint64_t)ctrlr->ready_timeout_in_ms * hz / 1000;
+ int timeout = ticks + MSEC_2_TICKS(ctrlr->ready_timeout_in_ms);
uint32_t csts;
while (1) {
@@ -326,7 +326,7 @@
* cope with these issues.
*/
if (ctrlr->quirks & QUIRK_DELAY_B4_CHK_RDY)
- pause("nvmeR", B4_CHK_RDY_DELAY_MS * hz / 1000);
+ pause("nvmeR", MSEC_2_TICKS(B4_CHK_RDY_DELAY_MS));
return (nvme_ctrlr_wait_for_ready(ctrlr, 0));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 10:55 PM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15901727
Default Alt Text
D32246.diff (675 B)
Attached To
Mode
D32246: nvme: Use MS_2_TICKS rather than rolling our own
Attached
Detach File
Event Timeline
Log In to Comment