Ver Fonte

kernel: make sched_esfq compile for 3.14

net_random was replaced with prandom_u32.

Signed-off-by: Jonas Gorski <[email protected]>

SVN-Revision: 40375
Jonas Gorski há 11 anos atrás
pai
commit
96c4e3eed0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      target/linux/generic/patches-3.14/620-sched_esfq.patch

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

@@ -560,7 +560,7 @@
 +	struct Qdisc *sch = (struct Qdisc*)arg;
 +	struct Qdisc *sch = (struct Qdisc*)arg;
 +	struct esfq_sched_data *q = qdisc_priv(sch);
 +	struct esfq_sched_data *q = qdisc_priv(sch);
 +
 +
-+	q->perturbation = net_random()&0x1F;
++	q->perturbation = prandom_u32()&0x1F;
 +
 +
 +	if (q->perturb_period) {
 +	if (q->perturb_period) {
 +		q->perturb_timer.expires = jiffies + q->perturb_period;
 +		q->perturb_timer.expires = jiffies + q->perturb_period;