aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-09-28 15:12:28 +0200
committerFelix Fietkau <nbd@nbd.name>2020-09-29 17:32:26 +0200
commit1ed6eb176c77e8dff0004fc110af6874f535068f (patch)
treedec8847f9f71983a95685014da5a012df9784176
parent5b296141c2f7c0a7026ad0c7910d1aa1bacb14bd (diff)
downloadupstream-1ed6eb176c77e8dff0004fc110af6874f535068f.tar.gz
upstream-1ed6eb176c77e8dff0004fc110af6874f535068f.tar.bz2
upstream-1ed6eb176c77e8dff0004fc110af6874f535068f.zip
mac80211: backport sched_set_fifo_low
This is needed for newer mt76 updates Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/kernel/mac80211/patches/subsys/072-backports-add-sched_set_fifo_low.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/subsys/072-backports-add-sched_set_fifo_low.patch b/package/kernel/mac80211/patches/subsys/072-backports-add-sched_set_fifo_low.patch
new file mode 100644
index 0000000000..9b266ffcb3
--- /dev/null
+++ b/package/kernel/mac80211/patches/subsys/072-backports-add-sched_set_fifo_low.patch
@@ -0,0 +1,32 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Mon, 28 Sep 2020 08:35:28 +0200
+Subject: [PATCH] backports: add sched_set_fifo_low
+
+It is needed for mt76
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+ create mode 100644 backport/backport-include/linux/sched.h
+
+--- /dev/null
++++ b/backport-include/linux/sched.h
+@@ -0,0 +1,19 @@
++#ifndef __BACKPORT_LINUX_SCHED_H
++#define __BACKPORT_LINUX_SCHED_H
++
++#include_next <linux/sched.h>
++#include <linux/version.h>
++
++#if LINUX_VERSION_IS_LESS(5,9,0)
++#include <uapi/linux/sched/types.h>
++
++static inline void sched_set_fifo_low(struct task_struct *p)
++{
++ struct sched_param sparam = {.sched_priority = 1};
++
++ sched_setscheduler(p, SCHED_FIFO, &sparam);
++}
++
++#endif
++
++#endif