* [PATCH] Docs: this_cpu_ops: remove redundant add forms
@ 2014-09-24 13:49 Mark Rutland
2014-09-24 14:40 ` Christoph Lameter
2014-09-25 17:18 ` Randy Dunlap
0 siblings, 2 replies; 3+ messages in thread
From: Mark Rutland @ 2014-09-24 13:49 UTC (permalink / raw)
To: linux-kernel, linux-doc
Cc: Mark Rutland, Pranith Kumar, Christoph Lameter, Randy Dunlap
Hi,
I spotted the below while trying to figure out how to use this_cpu ops,
and it left me confused for a short while.
I guess that this is a refactoring fallout rather than there being a
special this_cpu_add variant?
Mark.
---->8----
Commit ac490f4dca94 (Documentation: this_cpu_ops.txt: Update description
of this_cpu_ops) added lists of {__,}this_cpu operations, but these have
duplicate, parameter-less entries for {__,}this_cpu_add which don't
correspond to any implementation. No other operations have such
duplicate entries.
Given both are also listed with their full complement of arguments, the
empty forms are redundant and can be removed. This patch performs said
removal.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Pranith Kumar <bobby.prani@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
---
Documentation/this_cpu_ops.txt | 2 --
1 file changed, 2 deletions(-)
diff --git a/Documentation/this_cpu_ops.txt b/Documentation/this_cpu_ops.txt
index 0ec9957..2cbf719 100644
--- a/Documentation/this_cpu_ops.txt
+++ b/Documentation/this_cpu_ops.txt
@@ -41,7 +41,6 @@ The following this_cpu() operations with implied preemption protection
are defined. These operations can be used without worrying about
preemption and interrupts.
- this_cpu_add()
this_cpu_read(pcp)
this_cpu_write(pcp, val)
this_cpu_add(pcp, val)
@@ -225,7 +224,6 @@ still occur while an operation is in progress and if the interrupt too
modifies the variable, then RMW actions can not be guaranteed to be
safe.
- __this_cpu_add()
__this_cpu_read(pcp)
__this_cpu_write(pcp, val)
__this_cpu_add(pcp, val)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Docs: this_cpu_ops: remove redundant add forms
2014-09-24 13:49 [PATCH] Docs: this_cpu_ops: remove redundant add forms Mark Rutland
@ 2014-09-24 14:40 ` Christoph Lameter
2014-09-25 17:18 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Lameter @ 2014-09-24 14:40 UTC (permalink / raw)
To: Mark Rutland; +Cc: linux-kernel, linux-doc, Pranith Kumar, Randy Dunlap
On Wed, 24 Sep 2014, Mark Rutland wrote:
> I spotted the below while trying to figure out how to use this_cpu ops,
> and it left me confused for a short while.
>
> I guess that this is a refactoring fallout rather than there being a
> special this_cpu_add variant?
Thanks for fixing it.
Acked-by: Christoph Lameter <cl@linux.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Docs: this_cpu_ops: remove redundant add forms
2014-09-24 13:49 [PATCH] Docs: this_cpu_ops: remove redundant add forms Mark Rutland
2014-09-24 14:40 ` Christoph Lameter
@ 2014-09-25 17:18 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2014-09-25 17:18 UTC (permalink / raw)
To: Mark Rutland, linux-kernel, linux-doc; +Cc: Pranith Kumar, Christoph Lameter
On 09/24/14 06:49, Mark Rutland wrote:
> Hi,
>
> I spotted the below while trying to figure out how to use this_cpu ops,
> and it left me confused for a short while.
>
> I guess that this is a refactoring fallout rather than there being a
> special this_cpu_add variant?
>
> Mark.
>
> ---->8----
> Commit ac490f4dca94 (Documentation: this_cpu_ops.txt: Update description
> of this_cpu_ops) added lists of {__,}this_cpu operations, but these have
> duplicate, parameter-less entries for {__,}this_cpu_add which don't
> correspond to any implementation. No other operations have such
> duplicate entries.
>
> Given both are also listed with their full complement of arguments, the
> empty forms are redundant and can be removed. This patch performs said
> removal.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Pranith Kumar <bobby.prani@gmail.com>
> Cc: Christoph Lameter <cl@linux.com>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> ---
> Documentation/this_cpu_ops.txt | 2 --
> 1 file changed, 2 deletions(-)
Applied, thanks.
> diff --git a/Documentation/this_cpu_ops.txt b/Documentation/this_cpu_ops.txt
> index 0ec9957..2cbf719 100644
> --- a/Documentation/this_cpu_ops.txt
> +++ b/Documentation/this_cpu_ops.txt
> @@ -41,7 +41,6 @@ The following this_cpu() operations with implied preemption protection
> are defined. These operations can be used without worrying about
> preemption and interrupts.
>
> - this_cpu_add()
> this_cpu_read(pcp)
> this_cpu_write(pcp, val)
> this_cpu_add(pcp, val)
> @@ -225,7 +224,6 @@ still occur while an operation is in progress and if the interrupt too
> modifies the variable, then RMW actions can not be guaranteed to be
> safe.
>
> - __this_cpu_add()
> __this_cpu_read(pcp)
> __this_cpu_write(pcp, val)
> __this_cpu_add(pcp, val)
>
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-25 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 13:49 [PATCH] Docs: this_cpu_ops: remove redundant add forms Mark Rutland
2014-09-24 14:40 ` Christoph Lameter
2014-09-25 17:18 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox