FreeBSD Bugzilla – Attachment 221413 Details for
Bug 252539
[PATCH] kevent(2): wrong EVFILT_TIMER timeouts when using NOTE_NSECONDS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
evfilt-timer-nano-precision.patch (text/plain), 704 bytes, created by
Jan Kokemüller
on 2021-01-09 09:41:45 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jan Kokemüller
Created:
2021-01-09 09:41:45 UTC
Size:
704 bytes
patch
obsolete
>diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c >index a1a4a3c470b..e22c987f8a0 100644 >--- a/sys/kern/kern_event.c >+++ b/sys/kern/kern_event.c >@@ -658,21 +658,21 @@ timer2sbintime(int64_t data, int flags) > return (secs << 32 | US_TO_SBT(data % 1000000)); > } > return (US_TO_SBT(data)); > case NOTE_NSECONDS: > if (data >= 1000000000) { > secs = data / 1000000000; > #ifdef __LP64__ > if (secs > (SBT_MAX / SBT_1S)) > return (SBT_MAX); > #endif >- return (secs << 32 | US_TO_SBT(data % 1000000000)); >+ return (secs << 32 | NS_TO_SBT(data % 1000000000)); > } > return (NS_TO_SBT(data)); > default: > break; > } > return (-1); > } > > struct kq_timer_cb_data { > struct callout c;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252539
:
221412
| 221413