Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143218603
D32246.id96042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D32246.id96042.diff
View Options
Index: sys/dev/nvme/nvme_ctrlr.c
===================================================================
--- sys/dev/nvme/nvme_ctrlr.c
+++ sys/dev/nvme/nvme_ctrlr.c
@@ -257,7 +257,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) {
@@ -320,7 +320,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
Wed, Jan 28, 3:23 PM (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28066705
Default Alt Text
D32246.id96042.diff (704 B)
Attached To
Mode
D32246: nvme: Use MS_2_TICKS rather than rolling our own
Attached
Detach File
Event Timeline
Log In to Comment