]> Git Repo - linux.git/blob - drivers/staging/dgnc/dgnc_utils.c
Merge tag 'acpi-fix-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux.git] / drivers / staging / dgnc / dgnc_utils.c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/tty.h>
3 #include <linux/sched/signal.h>
4 #include "dgnc_utils.h"
5
6 /**
7  * dgnc_ms_sleep - Put the driver to sleep
8  * @ms - milliseconds to sleep
9  *
10  * Return: 0 if timed out, if interrupted by a signal return signal.
11  */
12 int dgnc_ms_sleep(ulong ms)
13 {
14         __set_current_state(TASK_INTERRUPTIBLE);
15         schedule_timeout((ms * HZ) / 1000);
16         return signal_pending(current);
17 }
This page took 0.033849 seconds and 4 git commands to generate.