OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: replace macros net_random and net_srandom with direct calls to prandom
[android-x86/kernel.git]
/
net
/
sched
/
sch_fq_codel.c
diff --git
a/net/sched/sch_fq_codel.c
b/net/sched/sch_fq_codel.c
index
5578628
..
ba5bc92
100644
(file)
--- a/
net/sched/sch_fq_codel.c
+++ b/
net/sched/sch_fq_codel.c
@@
-390,7
+390,7
@@
static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt)
sch->limit = 10*1024;
q->flows_cnt = 1024;
q->quantum = psched_mtu(qdisc_dev(sch));
- q->perturbation =
net_random
();
+ q->perturbation =
prandom_u32
();
INIT_LIST_HEAD(&q->new_flows);
INIT_LIST_HEAD(&q->old_flows);
codel_params_init(&q->cparams);