diff options
author | Tejun Heo <tj@kernel.org> | 2015-06-26 17:21:28 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-07-14 17:43:56 -0400 |
commit | 83cb8557e8d2c8e5eddc64840c437299343a7960 (patch) | |
tree | 9ab1a6bfd66a540c3ec6b03fb0ad19ed03d2f64c | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) |
percpu: update incorrect comment for this_cpu_*() operations
this_cpu_*() ops have been protected against both preemption and
interrupts for quite a while now. We apparently forgot to update the
comment. Fix it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
-rw-r--r-- | include/linux/percpu-defs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 57f3a1c550dc..8f16299ca068 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h | |||
@@ -488,10 +488,8 @@ do { \ | |||
488 | #define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1) | 488 | #define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1) |
489 | 489 | ||
490 | /* | 490 | /* |
491 | * Operations with implied preemption protection. These operations can be | 491 | * Operations with implied preemption/interrupt protection. These |
492 | * used without worrying about preemption. Note that interrupts may still | 492 | * operations can be used without worrying about preemption or interrupt. |
493 | * occur while an operation is in progress and if the interrupt modifies | ||
494 | * the variable too then RMW actions may not be reliable. | ||
495 | */ | 493 | */ |
496 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp) | 494 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp) |
497 | #define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val) | 495 | #define this_cpu_write(pcp, val) __pcpu_size_call(this_cpu_write_, pcp, val) |