]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
generic-dynamic-per-cpu-refcounting-doc-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:16:50 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:54:08 +0000 (16:54 +1100)
a little tidy

Cc: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/percpu-refcount.h

index bed9a0d29f665a923fa27a4d4848ed1415ddd0a2..d0cf8872dc43b9c693881ba29bd279adb6df8159 100644 (file)
  * BACKGROUND:
  *
  * Percpu refcounts are quite useful for performance, but if we blindly
- * converted all refcounts to percpu counters we'd waste quite a bit of memory
- * think about all the refcounts embedded in kobjects, files, etc. most of which
- * aren't used much.
+ * converted all refcounts to percpu counters we'd waste quite a bit of memory.
  *
- * These start out as simple atomic counters - a little bigger than a bare
- * atomic_t, 16 bytes instead of 4 - but if we exceed some arbitrary number of
- * gets in one second, we then switch to percpu counters.
+ * Think about all the refcounts embedded in kobjects, files, etc. most of which
+ * aren't used much. These start out as simple atomic counters - a little bigger
+ * than a bare atomic_t, 16 bytes instead of 4 - but if we exceed some arbitrary
+ * number of gets in one second, we then switch to percpu counters.
  *
  * This heuristic isn't perfect because it'll fire if the refcount was only
  * being used on one cpu; ideally we'd be able to count the number of cache
  * misses on percpu_ref_get() or something similar, but that'd make the non
  * percpu path significantly heavier/more complex. We can count the number of
- * gets() without any extra atomic instructions, on arches that support
+ * gets() without any extra atomic instructions on arches that support
  * atomic64_t - simply by changing the atomic_inc() to atomic_add_return().
  *
  * USAGE: