mvebu: espressobin: drop COMPHY removement patch
[openwrt/staging/thess.git] / package / kernel / mac80211 / patches / subsys / 072-backports-add-sched_set_fifo_low.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 28 Sep 2020 08:35:28 +0200
3 Subject: [PATCH] backports: add sched_set_fifo_low
4
5 It is needed for mt76
6
7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 ---
9 create mode 100644 backport/backport-include/linux/sched.h
10
11 --- /dev/null
12 +++ b/backport-include/linux/sched.h
13 @@ -0,0 +1,19 @@
14 +#ifndef __BACKPORT_LINUX_SCHED_H
15 +#define __BACKPORT_LINUX_SCHED_H
16 +
17 +#include_next <linux/sched.h>
18 +#include <linux/version.h>
19 +
20 +#if LINUX_VERSION_IS_LESS(5,9,0)
21 +#include <uapi/linux/sched/types.h>
22 +
23 +static inline void sched_set_fifo_low(struct task_struct *p)
24 +{
25 + struct sched_param sparam = {.sched_priority = 1};
26 +
27 + sched_setscheduler(p, SCHED_FIFO, &sparam);
28 +}
29 +
30 +#endif
31 +
32 +#endif