Merge pull request #239 from mechanicalamit/sched_workqueue_patches

Replace schedule_work with queue_work
This commit is contained in:
Jim Huang 2023-10-07 22:51:17 +08:00 committed by GitHub
commit c81fdd323c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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