Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178105744
D4144.1795976709.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
503 B
Referenced Files
None
Subscribers
None
D4144.1795976709.diff
View Options
Index: head/sys/boot/kshim/bsd_kernel.c
===================================================================
--- head/sys/boot/kshim/bsd_kernel.c
+++ head/sys/boot/kshim/bsd_kernel.c
@@ -138,6 +138,7 @@
{
int start = ticks;
int delta;
+ int time = 0;
if (cv->sleeping)
return (EWOULDBLOCK); /* not allowed */
@@ -154,6 +155,14 @@
usb_idle();
+ if (++time >= (1000000 / hz)) {
+ time = 0;
+ callout_process(1);
+ }
+
+ /* Sleep for 1 us */
+ delay(1);
+
mtx_lock(mtx);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 6:25 PM (7 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42094294
Default Alt Text
D4144.1795976709.diff (503 B)
Attached To
Mode
D4144: Run callouts during infinite waiting inside cv_wait
Attached
Detach File
Event Timeline