/*
* Helper functions to schedule periodic work in Linux kernel mode.
*/
+#include <linux/sched.h>
#include "timskmod.h"
#include "periodic_work.h"
}
if (pw->is_scheduled) {
write_unlock(&pw->lock);
- SLEEPJIFFIES(10);
+ __set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout(10);
write_lock(&pw->lock);
} else {
pw->want_to_stop = false;