Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Peter Zijlstra
On Tue, May 29, 2018 at 10:11:19AM +0100, Mark Rutland wrote: > Peter, does your ack still stand if I fold in the below? Yep, thanks for the cleanup.

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Peter Zijlstra
On Tue, May 29, 2018 at 10:11:19AM +0100, Mark Rutland wrote: > Peter, does your ack still stand if I fold in the below? Yep, thanks for the cleanup.

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Mark Rutland
On Tue, May 29, 2018 at 10:11:19AM +0100, Mark Rutland wrote: > On Wed, May 23, 2018 at 02:35:33PM +0100, Mark Rutland wrote: > > Some of the atomics return the result of a test applied after the atomic > > operation, and almost all architectures implement these as trivial > > wrappers around the

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Mark Rutland
On Tue, May 29, 2018 at 10:11:19AM +0100, Mark Rutland wrote: > On Wed, May 23, 2018 at 02:35:33PM +0100, Mark Rutland wrote: > > Some of the atomics return the result of a test applied after the atomic > > operation, and almost all architectures implement these as trivial > > wrappers around the

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Mark Rutland
On Wed, May 23, 2018 at 02:35:33PM +0100, Mark Rutland wrote: > Some of the atomics return the result of a test applied after the atomic > operation, and almost all architectures implement these as trivial > wrappers around the underlying atomic. Specifically: > > * _inc_and_test(v) is

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-29 Thread Mark Rutland
On Wed, May 23, 2018 at 02:35:33PM +0100, Mark Rutland wrote: > Some of the atomics return the result of a test applied after the atomic > operation, and almost all architectures implement these as trivial > wrappers around the underlying atomic. Specifically: > > * _inc_and_test(v) is

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-23 Thread Geert Uytterhoeven
On Wed, May 23, 2018 at 3:35 PM, Mark Rutland wrote: > Some of the atomics return the result of a test applied after the atomic > operation, and almost all architectures implement these as trivial > wrappers around the underlying atomic. Specifically: > > * _inc_and_test(v)

Re: [PATCH 13/13] atomics/treewide: make test ops optional

2018-05-23 Thread Geert Uytterhoeven
On Wed, May 23, 2018 at 3:35 PM, Mark Rutland wrote: > Some of the atomics return the result of a test applied after the atomic > operation, and almost all architectures implement these as trivial > wrappers around the underlying atomic. Specifically: > > * _inc_and_test(v) is (_inc_return(v) ==

[PATCH 13/13] atomics/treewide: make test ops optional

2018-05-23 Thread Mark Rutland
Some of the atomics return the result of a test applied after the atomic operation, and almost all architectures implement these as trivial wrappers around the underlying atomic. Specifically: * _inc_and_test(v) is (_inc_return(v) == 0) * _dec_and_test(v) is (_dec_return(v) == 0) *

[PATCH 13/13] atomics/treewide: make test ops optional

2018-05-23 Thread Mark Rutland
Some of the atomics return the result of a test applied after the atomic operation, and almost all architectures implement these as trivial wrappers around the underlying atomic. Specifically: * _inc_and_test(v) is (_inc_return(v) == 0) * _dec_and_test(v) is (_dec_return(v) == 0) *