Edited workqueue.c to fit with new commits