~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/srcu.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
        __srcu_read_unlock(sp, idx);
238
238
}
239
239
 
 
240
/**
 
241
 * smp_mb__after_srcu_read_unlock - ensure full ordering after srcu_read_unlock
 
242
 *
 
243
 * Converts the preceding srcu_read_unlock into a two-way memory barrier.
 
244
 *
 
245
 * Call this after srcu_read_unlock, to guarantee that all memory operations
 
246
 * that occur after smp_mb__after_srcu_read_unlock will appear to happen after
 
247
 * the preceding srcu_read_unlock.
 
248
 */
 
249
static inline void smp_mb__after_srcu_read_unlock(void)
 
250
{
 
251
        /* __srcu_read_unlock has smp_mb() internally so nothing to do here. */
 
252
}
 
253
 
240
254
#endif