Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24-git4 /kernel/rcutorture.c

Filename:/kernel/rcutorture.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.6.24-git3  2.6.24-git2  2.6.24  2.6.24-rc8  2.6.24-rc7  2.6.24-rc6 
(Following) 2.6.24-git5  2.6.24-git6  2.6.24-git7  2.6.24-git8  2.6.24-git9  2.6.24-git10 

Location
[  2.6.24-git4
  [  kernel
     o  rcutorture.c

Patch

diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index c3e165c..fd59982 100644
--- 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;
 
-   lock_cpu_hotplug();
+   get_online_cpus();
 
    /* 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;
    }
 
@@ -762,7 +762,7 @@ static void rcu_torture_shuffle_tasks(void)
    else
       rcu_idle_cpu--;
 
-   unlock_cpu_hotplug();
+   put_online_cpus();
 }
 
 /* Shuffle tasks across CPUs, with the intent of allowing each CPU in the


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.