Skip to content

Commit

Permalink
Merge pull request #239 from mechanicalamit/sched_workqueue_patches
Browse files Browse the repository at this point in the history
Replace schedule_work with queue_work
  • Loading branch information
jserv committed Oct 7, 2023
2 parents b99354a + a49c9ba commit c81fdd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c81fdd3

Please sign in to comment.