Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107042149
D33932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33932.diff
View Options
diff --git a/sys/dev/vt/vt_cpulogos.c b/sys/dev/vt/vt_cpulogos.c
--- a/sys/dev/vt/vt_cpulogos.c
+++ b/sys/dev/vt/vt_cpulogos.c
@@ -35,6 +35,7 @@
#include <sys/mutex.h>
#include <sys/smp.h>
#include <sys/systm.h>
+#include <sys/taskqueue.h>
#include <sys/terminal.h>
#include <dev/vt/vt.h>
@@ -43,7 +44,7 @@
extern const unsigned char vt_beastie2_vga16[];
extern const unsigned char vt_orb_vga16[];
-static struct callout vt_splash_cpu_callout;
+static struct timeout_task vt_splash_cpu_fini_task;
static inline unsigned char
vt_vga2bsd(unsigned char vga)
@@ -149,7 +150,7 @@
}
static void
-vt_fini_logos(void *dummy __unused)
+vt_fini_logos(void *dummy __unused, int pending __unused)
{
struct vt_device *vd;
struct vt_window *vw;
@@ -260,11 +261,12 @@
vt_resume_flush_timer(vw, 0);
}
- callout_init(&vt_splash_cpu_callout, 1);
- callout_reset(&vt_splash_cpu_callout, vt_splash_cpu_duration * hz,
+ TIMEOUT_TASK_INIT(taskqueue_thread, &vt_splash_cpu_fini_task, 0,
vt_fini_logos, NULL);
+ taskqueue_enqueue_timeout(taskqueue_thread, &vt_splash_cpu_fini_task,
+ vt_splash_cpu_duration * hz);
out:
VT_UNLOCK(vd);
}
-SYSINIT(vt_logos, SI_SUB_CPU + 1, SI_ORDER_ANY, vt_init_logos, NULL);
+SYSINIT(vt_logos, SI_SUB_TASKQ, SI_ORDER_ANY, vt_init_logos, NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 8:51 AM (12 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15741199
Default Alt Text
D33932.diff (1 KB)
Attached To
Mode
D33932: vt: Use a taskqueue to clear splash_cpu logos
Attached
Detach File
Event Timeline
Log In to Comment