Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F36306990
Command-Line Input
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
jhb
Feb 2 2022, 11:20 PM
2022-02-02 23:20:10 (UTC+0)
Size
759 B
Referenced Files
None
Subscribers
None
Command-Line Input
View Options
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index d0fb19661fa4..bb981f423c7c 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -430,6 +430,7 @@ callout_get_bucket(sbintime_t sbt)
void
callout_process(sbintime_t now)
{
+ struct intr_entropy entropy;
struct callout *tmp, *tmpn;
struct callout_cpu *cc;
struct callout_list *sc;
@@ -545,6 +546,10 @@ callout_process(sbintime_t now)
avg_lockcalls_dir += (lockcalls_dir * 1000 - avg_lockcalls_dir) >> 8;
#endif
if (!TAILQ_EMPTY(&cc->cc_expireq)) {
+ entropy.event = (uintptr_t)cc;
+ entropy.td = curthread;
+ random_harvest_queue(&entropy, sizeof(entropy), RANDOM_SWI);
+
td = cc->cc_thread;
if (TD_AWAITING_INTR(td)) {
thread_lock_block_wait(td);
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4470658
Default Alt Text
Command-Line Input (759 B)
Attached To
Mode
P537 Command-Line Input
Attached
Detach File
Event Timeline
Log In to Comment