Re: [PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-26 Thread Bart Van Assche
On 09/26/16 01:55, Peter Zijlstra wrote: On Sun, Sep 25, 2016 at 07:08:45PM -0700, Bart Van Assche wrote: A quote from Documentation/memory_barriers.txt: For example, because 'jiffies' is marked volatile, it is never necessary to say READ_ONCE(jiffies). The reason for this is that READ_ONCE()

Re: [PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-26 Thread Bart Van Assche
On 09/26/16 01:55, Peter Zijlstra wrote: On Sun, Sep 25, 2016 at 07:08:45PM -0700, Bart Van Assche wrote: A quote from Documentation/memory_barriers.txt: For example, because 'jiffies' is marked volatile, it is never necessary to say READ_ONCE(jiffies). The reason for this is that READ_ONCE()

Re: [PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-26 Thread Peter Zijlstra
On Sun, Sep 25, 2016 at 07:08:45PM -0700, Bart Van Assche wrote: > A quote from Documentation/memory_barriers.txt: > > For example, because 'jiffies' is marked volatile, it is never > necessary to say READ_ONCE(jiffies). The reason for this is > that READ_ONCE() and WRITE_ONCE() are implemented

Re: [PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-26 Thread Peter Zijlstra
On Sun, Sep 25, 2016 at 07:08:45PM -0700, Bart Van Assche wrote: > A quote from Documentation/memory_barriers.txt: > > For example, because 'jiffies' is marked volatile, it is never > necessary to say READ_ONCE(jiffies). The reason for this is > that READ_ONCE() and WRITE_ONCE() are implemented

[PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-25 Thread Bart Van Assche
A quote from Documentation/memory_barriers.txt: For example, because 'jiffies' is marked volatile, it is never necessary to say READ_ONCE(jiffies). The reason for this is that READ_ONCE() and WRITE_ONCE() are implemented as volatile casts, which has no effect when its argument is already marked

[PATCH] sched: Change READ_ONCE(jiffies) into jiffies

2016-09-25 Thread Bart Van Assche
A quote from Documentation/memory_barriers.txt: For example, because 'jiffies' is marked volatile, it is never necessary to say READ_ONCE(jiffies). The reason for this is that READ_ONCE() and WRITE_ONCE() are implemented as volatile casts, which has no effect when its argument is already marked