Release 4.15 drivers/staging/dgnc/dgnc_utils.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/tty.h>
#include <linux/sched/signal.h>
#include "dgnc_utils.h"
/**
* dgnc_ms_sleep - Put the driver to sleep
* @ms - milliseconds to sleep
*
* Return: 0 if timed out, if interrupted by a signal return signal.
*/
int dgnc_ms_sleep(ulong ms)
{
__set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout((ms * HZ) / 1000);
return signal_pending(current);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Zapalowicz | 27 | 90.00% | 1 | 50.00% |
Davidlohr Bueso A | 3 | 10.00% | 1 | 50.00% |
Total | 30 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Konrad Zapalowicz | 35 | 85.37% | 1 | 20.00% |
Davidlohr Bueso A | 3 | 7.32% | 1 | 20.00% |
Greg Kroah-Hartman | 1 | 2.44% | 1 | 20.00% |
Ingo Molnar | 1 | 2.44% | 1 | 20.00% |
Tobin C Harding | 1 | 2.44% | 1 | 20.00% |
Total | 41 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.