lkml.org 
[lkml]   [2010]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromNikanth Karthikesan <>
Subject[PATCH] define percpu_counter_batch when CONFIG_SMP is not set
DateThu, 4 Feb 2010 18:19:22 +0530
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    [from the cache]
©2003-2010