projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c86d2dd
)
net/sched: rename random32() to prandom_u32()
author
Akinobu Mita
<
[email protected]
>
Mon, 29 Apr 2013 23:21:38 +0000
(16:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:43 +0000
(18:28 -0700)
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: Stephen Hemminger <
[email protected]
>
Cc: Jamal Hadi Salim <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
net/sched/sch_choke.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_choke.c
b/net/sched/sch_choke.c
index cc37dd52ecf95dfd7d396fcea2ffc618e11a5101..ef53ab8d0aaec69628fe6bf497ced92dd5ebc44c 100644
(file)
--- a/
net/sched/sch_choke.c
+++ b/
net/sched/sch_choke.c
@@
-80,7
+80,7
@@
struct choke_sched_data {
/* deliver a random number between 0 and N - 1 */
static u32 random_N(unsigned int N)
{
- return reciprocal_divide(
random
32(), N);
+ return reciprocal_divide(
prandom_u
32(), N);
}
/* number of elements in queue including holes */