From 748e4f3d702def1a4bff191e0cf93b6a05340f01 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:41:34 +0000 Subject: [PATCH] add gpio led uart --- kernel/include/net/dst_ops.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/kernel/include/net/dst_ops.h b/kernel/include/net/dst_ops.h index 443863c..88ff7bb 100644 --- a/kernel/include/net/dst_ops.h +++ b/kernel/include/net/dst_ops.h @@ -53,9 +53,11 @@ return percpu_counter_sum_positive(&dst->pcpuc_entries); } +#define DST_PERCPU_COUNTER_BATCH 32 static inline void dst_entries_add(struct dst_ops *dst, int val) { - percpu_counter_add(&dst->pcpuc_entries, val); + percpu_counter_add_batch(&dst->pcpuc_entries, val, + DST_PERCPU_COUNTER_BATCH); } static inline int dst_entries_init(struct dst_ops *dst) -- Gitblit v1.6.2