forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a number of whitespace ^Ierrors in the include/linux/rcu* and the kernel/rcu* files. Signed-off-by: Paul E. McKenney <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] LKML-Reference: <[email protected]> [ did more checkpatch fixlets ] Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information
Showing
9 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Read-Copy Update mechanism for mutual exclusion | ||
* Read-Copy Update mechanism for mutual exclusion | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -18,15 +18,15 @@ | |
* Copyright IBM Corporation, 2001 | ||
* | ||
* Author: Dipankar Sarma <[email protected]> | ||
* | ||
* | ||
* Based on the original work by Paul McKenney <[email protected]> | ||
* and inputs from Rusty Russell, Andrea Arcangeli and Andi Kleen. | ||
* Papers: | ||
* http://www.rdrop.com/users/paulmck/paper/rclockpdcsproof.pdf | ||
* http://lse.sourceforge.net/locking/rclock_OLS.2001.05.01c.sc.pdf (OLS2001) | ||
* | ||
* For detailed explanation of Read-Copy Update mechanism see - | ||
* http://lse.sourceforge.net/locking/rcupdate.html | ||
* http://lse.sourceforge.net/locking/rcupdate.html | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,15 @@ | |
* | ||
* Authors: Dipankar Sarma <[email protected]> | ||
* Manfred Spraul <[email protected]> | ||
* | ||
* | ||
* Based on the original work by Paul McKenney <[email protected]> | ||
* and inputs from Rusty Russell, Andrea Arcangeli and Andi Kleen. | ||
* Papers: | ||
* http://www.rdrop.com/users/paulmck/paper/rclockpdcsproof.pdf | ||
* http://lse.sourceforge.net/locking/rclock_OLS.2001.05.01c.sc.pdf (OLS2001) | ||
* | ||
* For detailed explanation of Read-Copy Update mechanism see - | ||
* http://lse.sourceforge.net/locking/rcupdate.html | ||
* http://lse.sourceforge.net/locking/rcupdate.html | ||
* | ||
*/ | ||
#include <linux/types.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* Copyright (C) IBM Corporation, 2005, 2006 | ||
* | ||
* Authors: Paul E. McKenney <[email protected]> | ||
* Josh Triplett <[email protected]> | ||
* Josh Triplett <[email protected]> | ||
* | ||
* See also: Documentation/RCU/torture.txt | ||
*/ | ||
|
@@ -50,7 +50,7 @@ | |
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Paul E. McKenney <[email protected]> and " | ||
"Josh Triplett <[email protected]>"); | ||
"Josh Triplett <[email protected]>"); | ||
|
||
static int nreaders = -1; /* # reader threads, defaults to 2*ncpus */ | ||
static int nfakewriters = 4; /* # fake writer threads */ | ||
|
@@ -110,8 +110,8 @@ struct rcu_torture { | |
}; | ||
|
||
static LIST_HEAD(rcu_torture_freelist); | ||
static struct rcu_torture *rcu_torture_current = NULL; | ||
static long rcu_torture_current_version = 0; | ||
static struct rcu_torture *rcu_torture_current; | ||
static long rcu_torture_current_version; | ||
static struct rcu_torture rcu_tortures[10 * RCU_TORTURE_PIPE_LEN]; | ||
static DEFINE_SPINLOCK(rcu_torture_lock); | ||
static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) = | ||
|
@@ -124,11 +124,11 @@ static atomic_t n_rcu_torture_alloc_fail; | |
static atomic_t n_rcu_torture_free; | ||
static atomic_t n_rcu_torture_mberror; | ||
static atomic_t n_rcu_torture_error; | ||
static long n_rcu_torture_timers = 0; | ||
static long n_rcu_torture_timers; | ||
static struct list_head rcu_torture_removed; | ||
static cpumask_var_t shuffle_tmp_mask; | ||
|
||
static int stutter_pause_test = 0; | ||
static int stutter_pause_test; | ||
|
||
#if defined(MODULE) || defined(CONFIG_RCU_TORTURE_TEST_RUNNABLE) | ||
#define RCUTORTURE_RUNNABLE_INIT 1 | ||
|
@@ -267,7 +267,8 @@ struct rcu_torture_ops { | |
int irq_capable; | ||
char *name; | ||
}; | ||
static struct rcu_torture_ops *cur_ops = NULL; | ||
|
||
static struct rcu_torture_ops *cur_ops; | ||
|
||
/* | ||
* Definitions for rcu torture testing. | ||
|
@@ -342,8 +343,8 @@ static struct rcu_torture_ops rcu_ops = { | |
.sync = synchronize_rcu, | ||
.cb_barrier = rcu_barrier, | ||
.stats = NULL, | ||
.irq_capable = 1, | ||
.name = "rcu" | ||
.irq_capable = 1, | ||
.name = "rcu" | ||
}; | ||
|
||
static void rcu_sync_torture_deferred_free(struct rcu_torture *p) | ||
|
@@ -641,7 +642,8 @@ rcu_torture_writer(void *arg) | |
|
||
do { | ||
schedule_timeout_uninterruptible(1); | ||
if ((rp = rcu_torture_alloc()) == NULL) | ||
rp = rcu_torture_alloc(); | ||
if (rp == NULL) | ||
continue; | ||
rp->rtort_pipe_count = 0; | ||
udelay(rcu_random(&rand) & 0x3ff); | ||
|
@@ -1113,7 +1115,7 @@ rcu_torture_init(void) | |
printk(KERN_ALERT "rcutorture: invalid torture type: \"%s\"\n", | ||
torture_type); | ||
mutex_unlock(&fullstop_mutex); | ||
return (-EINVAL); | ||
return -EINVAL; | ||
} | ||
if (cur_ops->init) | ||
cur_ops->init(); /* no "goto unwind" prior to this point!!! */ | ||
|
@@ -1164,7 +1166,7 @@ rcu_torture_init(void) | |
goto unwind; | ||
} | ||
fakewriter_tasks = kzalloc(nfakewriters * sizeof(fakewriter_tasks[0]), | ||
GFP_KERNEL); | ||
GFP_KERNEL); | ||
if (fakewriter_tasks == NULL) { | ||
VERBOSE_PRINTK_ERRSTRING("out of memory"); | ||
firsterr = -ENOMEM; | ||
|
@@ -1173,7 +1175,7 @@ rcu_torture_init(void) | |
for (i = 0; i < nfakewriters; i++) { | ||
VERBOSE_PRINTK_STRING("Creating rcu_torture_fakewriter task"); | ||
fakewriter_tasks[i] = kthread_run(rcu_torture_fakewriter, NULL, | ||
"rcu_torture_fakewriter"); | ||
"rcu_torture_fakewriter"); | ||
if (IS_ERR(fakewriter_tasks[i])) { | ||
firsterr = PTR_ERR(fakewriter_tasks[i]); | ||
VERBOSE_PRINTK_ERRSTRING("Failed to create fakewriter"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters