diff options
| author | Christoph Lameter <cl@linux.com> | 2014-04-07 15:39:42 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-28 15:14:07 +0200 |
| commit | b74a1f640dc915f9297e10e50bbd378751eda056 (patch) | |
| tree | 02b35ceefe261890191098af3d8155c1b446477a /include/linux/uinput.h | |
| parent | f0eaf96c524b819915997d6fafb9976183251fa4 (diff) | |
slub: use raw_cpu_inc for incrementing statistics
Statistics are not critical to the operation of the allocation but
should also not cause too much overhead.
When __this_cpu_inc is altered to check if preemption is disabled this
triggers. Use raw_cpu_inc to avoid the checks. Using this_cpu_ops may
cause interrupt disable/enable sequences on various arches which may
significantly impact allocator performance.
[akpm@linux-foundation.org: add comment]
Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: W4TCH0UT <ateekujjawal@gmail.com>
Diffstat (limited to 'include/linux/uinput.h')
0 files changed, 0 insertions, 0 deletions
