lkml.org 
[lkml]   [2010]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] define percpu_counter_batch when CONFIG_SMP is not set
Date
percpu_counter_batch is not defined if CONFIG_SMP is not set.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>

---

diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h
index a7684a5..ff57cef 100644
--- a/include/linux/percpu_counter.h
+++ b/include/linux/percpu_counter.h
@@ -83,6 +83,8 @@ struct percpu_counter {
s64 count;
};

+#define percpu_counter_batch 2
+
static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount)
{
fbc->count = amount;

\
 
 \ /
  Last update: 2010-02-04 13:51    [W:0.045 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site