aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/torture.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcu/torture.c')
-rw-r--r--kernel/rcu/torture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcu/torture.c b/kernel/rcu/torture.c
index 732f8ae3086a..022c5312b725 100644
--- a/kernel/rcu/torture.c
+++ b/kernel/rcu/torture.c
@@ -12,8 +12,8 @@
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software 15 * along with this program; if not, you can access it online at
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 16 * http://www.gnu.org/licenses/gpl-2.0.html.
17 * 17 *
18 * Copyright (C) IBM Corporation, 2005, 2006 18 * Copyright (C) IBM Corporation, 2005, 2006
19 * 19 *
@@ -1352,7 +1352,7 @@ rcu_torture_shutdown(void *arg)
1352 unsigned long jiffies_snap; 1352 unsigned long jiffies_snap;
1353 1353
1354 VERBOSE_PRINTK_STRING("rcu_torture_shutdown task started"); 1354 VERBOSE_PRINTK_STRING("rcu_torture_shutdown task started");
1355 jiffies_snap = ACCESS_ONCE(jiffies); 1355 jiffies_snap = jiffies;
1356 while (ULONG_CMP_LT(jiffies_snap, shutdown_time) && 1356 while (ULONG_CMP_LT(jiffies_snap, shutdown_time) &&
1357 !kthread_should_stop()) { 1357 !kthread_should_stop()) {
1358 delta = shutdown_time - jiffies_snap; 1358 delta = shutdown_time - jiffies_snap;
@@ -1361,7 +1361,7 @@ rcu_torture_shutdown(void *arg)
1361 "rcu_torture_shutdown task: %lu jiffies remaining\n", 1361 "rcu_torture_shutdown task: %lu jiffies remaining\n",
1362 torture_type, delta); 1362 torture_type, delta);
1363 schedule_timeout_interruptible(delta); 1363 schedule_timeout_interruptible(delta);
1364 jiffies_snap = ACCESS_ONCE(jiffies); 1364 jiffies_snap = jiffies;
1365 } 1365 }
1366 if (kthread_should_stop()) { 1366 if (kthread_should_stop()) {
1367 VERBOSE_PRINTK_STRING("rcu_torture_shutdown task stopping"); 1367 VERBOSE_PRINTK_STRING("rcu_torture_shutdown task stopping");