kernel: make sched_esfq compile for 3.14
authorJonas Gorski <jogo@openwrt.org>
Fri, 4 Apr 2014 10:16:47 +0000 (10:16 +0000)
committerJonas Gorski <jogo@openwrt.org>
Fri, 4 Apr 2014 10:16:47 +0000 (10:16 +0000)
net_random was replaced with prandom_u32.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 40375

target/linux/generic/patches-3.14/620-sched_esfq.patch

index 964698853ad72b6f9b93f31ab441010ca8ce8d02..9726e4ac2f748b15405618472e6ebe6f102eaca5 100644 (file)
 +      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;