projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SIT]: Allow to create SIT tunnels in net namespaces.
[deliverable/linux.git]
/
kernel
/
rcutorture.c
diff --git
a/kernel/rcutorture.c
b/kernel/rcutorture.c
index c3e165c2318f16657023d7693dd6a77762945861..fd599829e72a5d49a5852272ba234be8c38accaf 100644
(file)
--- a/
kernel/rcutorture.c
+++ b/
kernel/rcutorture.c
@@
-726,11
+726,11
@@
static void rcu_torture_shuffle_tasks(void)
cpumask_t tmp_mask = CPU_MASK_ALL;
int i;
cpumask_t tmp_mask = CPU_MASK_ALL;
int i;
-
lock_cpu_hotplug
();
+
get_online_cpus
();
/* No point in shuffling if there is only one online CPU (ex: UP) */
if (num_online_cpus() == 1) {
/* No point in shuffling if there is only one online CPU (ex: UP) */
if (num_online_cpus() == 1) {
-
unlock_cpu_hotplug
();
+
put_online_cpus
();
return;
}
return;
}
@@
-762,7
+762,7
@@
static void rcu_torture_shuffle_tasks(void)
else
rcu_idle_cpu--;
else
rcu_idle_cpu--;
-
unlock_cpu_hotplug
();
+
put_online_cpus
();
}
/* Shuffle tasks across CPUs, with the intent of allowing each CPU in the
}
/* Shuffle tasks across CPUs, with the intent of allowing each CPU in the
This page took
0.026177 seconds
and
5
git commands to generate.