OSDN Git Service

net: replace macros net_random and net_srandom with direct calls to prandom
[android-x86/kernel.git] / net / sched / sch_hhf.c
index 1cf84a9..647680b 100644 (file)
@@ -607,7 +607,7 @@ static int hhf_init(struct Qdisc *sch, struct nlattr *opt)
 
        sch->limit = 1000;
        q->quantum = psched_mtu(qdisc_dev(sch));
-       q->perturbation = net_random();
+       q->perturbation = prandom_u32();
        INIT_LIST_HEAD(&q->new_buckets);
        INIT_LIST_HEAD(&q->old_buckets);