summaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-04-29 16:21:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 18:28:42 -0700
commit6d65df3325c380f3c897330c48f0e53d73b8f362 (patch)
tree469323f63abe2d00925328c7fbcb41624dc85949 /kernel/rcutree.c
parentd3d30417d32adb5bec041f2c3988b5f91c4e7eec (diff)
downloadop-kernel-dev-6d65df3325c380f3c897330c48f0e53d73b8f362.zip
op-kernel-dev-6d65df3325c380f3c897330c48f0e53d73b8f362.tar.gz
kernel/: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 5b8ad82..2f8530b 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1319,7 +1319,7 @@ static int rcu_gp_init(struct rcu_state *rsp)
rnp->grphi, rnp->qsmask);
raw_spin_unlock_irq(&rnp->lock);
#ifdef CONFIG_PROVE_RCU_DELAY
- if ((random32() % (rcu_num_nodes * 8)) == 0)
+ if ((prandom_u32() % (rcu_num_nodes * 8)) == 0)
schedule_timeout_uninterruptible(2);
#endif /* #ifdef CONFIG_PROVE_RCU_DELAY */
cond_resched();
OpenPOWER on IntegriCloud