diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-08-06 18:42:37 -0400 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2023-05-28 19:01:53 +0000 |
commit | 79ded5acf1ac5f1b2aedd29443347a957a3186d8 (patch) | |
tree | a76fb2e3ea7a63f6ea1392ca007a573bfd526e14 /include/linux/kernel.h | |
parent | 8d1010ab9d712a00081e7cc4b52c48f595a19262 (diff) |
Lazy percpu counterslazy_percpu_counters
This patch adds lib/lazy-percpu-counter.c, which implements counters
that start out as atomics, but lazily switch to percpu mode if the
update rate crosses some threshold (arbitrarily set at 256 per second).
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions