summaryrefslogtreecommitdiff
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-08-06 18:42:37 -0400
committerSuren Baghdasaryan <surenb@google.com>2023-05-28 19:01:53 +0000
commit79ded5acf1ac5f1b2aedd29443347a957a3186d8 (patch)
treea76fb2e3ea7a63f6ea1392ca007a573bfd526e14 /lib/Kconfig
parent8d1010ab9d712a00081e7cc4b52c48f595a19262 (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 'lib/Kconfig')
-rw-r--r--lib/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index 5c2da561c516..7380292a8fcd 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -505,6 +505,9 @@ config ASSOCIATIVE_ARRAY
for more information.
+config LAZY_PERCPU_COUNTER
+ bool
+
config HAS_IOMEM
bool
depends on !NO_IOMEM