summaryrefslogtreecommitdiffstats
path: root/sys/xen/xenbus/xenbus_xs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/xen/xenbus/xenbus_xs.c')
-rw-r--r--sys/xen/xenbus/xenbus_xs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/xen/xenbus/xenbus_xs.c b/sys/xen/xenbus/xenbus_xs.c
index f68bcf3..ec49a50 100644
--- a/sys/xen/xenbus/xenbus_xs.c
+++ b/sys/xen/xenbus/xenbus_xs.c
@@ -883,7 +883,7 @@ static void xenbus_thread(void *unused)
DELAY(10000);
xenbus_running = 1;
- pause("xenbus", hz/10);
+ tsleep(&lbolt, 0, "xenbus", hz/10);
for (;;) {
err = xs_process_msg(&type);
@@ -922,13 +922,13 @@ int xs_init(void)
if (err)
return err;
- err = kproc_create(xenwatch_thread, NULL, &p,
+ err = kthread_create(xenwatch_thread, NULL, &p,
RFHIGHPID, 0, "xenwatch");
if (err)
return err;
xenwatch_pid = p->p_pid;
- err = kproc_create(xenbus_thread, NULL, NULL,
+ err = kthread_create(xenbus_thread, NULL, NULL,
RFHIGHPID, 0, "xenbus");
return err;
OpenPOWER on IntegriCloud