aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2014-04-04 10:16:47 +0000
committerJonas Gorski <jogo@openwrt.org>2014-04-04 10:16:47 +0000
commit58c687126a976819dbeecbe1d431fd38309723fe (patch)
tree6d68acaf074e46f3af732e820a57d8fb5cb1dbe0 /target/linux
parent9d2f3b2e28f4d7deea207190f204494cad87abe5 (diff)
downloadupstream-58c687126a976819dbeecbe1d431fd38309723fe.tar.gz
upstream-58c687126a976819dbeecbe1d431fd38309723fe.tar.bz2
upstream-58c687126a976819dbeecbe1d431fd38309723fe.zip
kernel: make sched_esfq compile for 3.14
net_random was replaced with prandom_u32. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40375 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/patches-3.14/620-sched_esfq.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/patches-3.14/620-sched_esfq.patch b/target/linux/generic/patches-3.14/620-sched_esfq.patch
index 964698853a..9726e4ac2f 100644
--- a/target/linux/generic/patches-3.14/620-sched_esfq.patch
+++ b/target/linux/generic/patches-3.14/620-sched_esfq.patch
@@ -560,7 +560,7 @@
+ struct Qdisc *sch = (struct Qdisc*)arg;
+ struct esfq_sched_data *q = qdisc_priv(sch);
+
-+ q->perturbation = net_random()&0x1F;
++ q->perturbation = prandom_u32()&0x1F;
+
+ if (q->perturb_period) {
+ q->perturb_timer.expires = jiffies + q->perturb_period;