All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikanth Karthikesan <knikanth@suse.de>
To: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	linux-kernel@vger.kernel.org,
	Suresh Jayaraman <sjayaraman@suse.de>
Subject: [PATCH] define percpu_counter_batch when CONFIG_SMP is not set
Date: Thu, 4 Feb 2010 18:19:22 +0530	[thread overview]
Message-ID: <201002041819.22985.knikanth@suse.de> (raw)

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;

             reply	other threads:[~2010-02-04 12:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 12:49 Nikanth Karthikesan [this message]
2010-02-04 12:58 ` [PATCH] define percpu_counter_batch when CONFIG_SMP is not set Nikanth Karthikesan
2010-02-04 15:03   ` Peter Zijlstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002041819.22985.knikanth@suse.de \
    --to=knikanth@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=sjayaraman@suse.de \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.