diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-04-04 10:16:47 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-04-04 10:16:47 +0000 |
commit | 96c4e3eed0493d3fdf28fd75e977e4f02c3b87f5 (patch) | |
tree | 5ed19a47c5bde594b77641cd624f1a54555bba68 /target/linux/generic/patches-3.14/620-sched_esfq.patch | |
parent | e24b601b562ab2c6bcef11a5d4db54c6cf99ef43 (diff) | |
download | mtk-20170518-96c4e3eed0493d3fdf28fd75e977e4f02c3b87f5.zip mtk-20170518-96c4e3eed0493d3fdf28fd75e977e4f02c3b87f5.tar.gz mtk-20170518-96c4e3eed0493d3fdf28fd75e977e4f02c3b87f5.tar.bz2 |
kernel: make sched_esfq compile for 3.14
net_random was replaced with prandom_u32.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 40375
Diffstat (limited to 'target/linux/generic/patches-3.14/620-sched_esfq.patch')
-rw-r--r-- | target/linux/generic/patches-3.14/620-sched_esfq.patch | 2 |
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 9646988..9726e4a 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; |