Browse Source

Merge pull request #239 from mechanicalamit/sched_workqueue_patches

Replace schedule_work with queue_work
Jim Huang 1 year ago
parent
commit
c81fdd323c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/sched.c

+ 1 - 1
examples/sched.c

@@ -17,7 +17,7 @@ static int __init sched_init(void)
 {
 {
     queue = alloc_workqueue("HELLOWORLD", WQ_UNBOUND, 1);
     queue = alloc_workqueue("HELLOWORLD", WQ_UNBOUND, 1);
     INIT_WORK(&work, work_handler);
     INIT_WORK(&work, work_handler);
-    schedule_work(&work);
+    queue_work(queue, &work);
     return 0;
     return 0;
 }
 }