lkml.org 
[lkml]   [2012]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] cpuset: mm: Reduce large amounts of memory barrier related damage v3
From
Date
On Mon, 2012-03-26 at 12:56 +0200, Peter Zijlstra wrote:
> static inline bool put_mems_allowed(unsigned int seq)
> {
> - return !read_seqcount_retry(&current->mems_allowed_seq, seq);
> + return likely(!read_seqcount_retry(&current->mems_allowed_seq, seq));
> }

Ignore this hunk, read_seqcount_retry() already has a branch hint in.
I'll send a new version if people thing the rest of the patch is worth
it.


\
 
 \ /
  Last update: 2012-03-26 13:11    [W:0.216 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site