From: Jonas Gorski Date: Fri, 4 Apr 2014 10:16:47 +0000 (+0000) Subject: kernel: make sched_esfq compile for 3.14 X-Git-Tag: reboot~7543 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96c4e3eed0493d3fdf28fd75e977e4f02c3b87f5;p=oweals%2Fopenwrt.git kernel: make sched_esfq compile for 3.14 net_random was replaced with prandom_u32. Signed-off-by: Jonas Gorski SVN-Revision: 40375 --- 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;