All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Artem Bityutskiy <dedekind1@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>
Cc: Neil Brown <neilb@suse.de>,
	linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	Venki Pallipadi <venkatesh.pallipadi@intel.com>
Subject: [PATCH] timers.c: document meaning of deferrable timer
Date: Tue, 6 Jul 2010 13:19:08 -0400	[thread overview]
Message-ID: <20100706171908.GL7387@fieldses.org> (raw)
In-Reply-To: <1277996756-8415-1-git-send-email-dedekind1@gmail.com>

From: J. Bruce Fields <bfields@citi.umich.edu>

Steal some text from 6e453a67510 "Add support for deferrable timers".
A reader shouldn't have to dig through the git logs for the basic
description of a deferrable timer.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
---
 kernel/timer.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/kernel/timer.c b/kernel/timer.c
index ee305c8..947bcf6 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -90,8 +90,13 @@ static DEFINE_PER_CPU(struct tvec_base *, tvec_bases) = &boot_tvec_bases;
 
 /*
  * Note that all tvec_bases are 2 byte aligned and lower bit of
- * base in timer_list is guaranteed to be zero. Use the LSB for
- * the new flag to indicate whether the timer is deferrable
+ * base in timer_list is guaranteed to be zero. Use the LSB to
+ * indicate whether the timer is deferrable.
+ *
+ * A deferrable timer will work normally when the system is busy, but
+ * will not cause a CPU to come out of idle just to service it; instead,
+ * the timer will be serviced when the CPU eventually wakes up with a
+ * subsequent non-deferrable timer.
  */
 #define TBASE_DEFERRABLE_FLAG		(0x1)
 
-- 
1.7.0.4


  parent reply	other threads:[~2010-07-06 17:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01 15:05 [PATCH] sunrpc: make the cache cleaner workqueue deferrable Artem Bityutskiy
2010-07-05 12:31 ` Artem Bityutskiy
2010-07-06 16:29   ` J. Bruce Fields
2010-07-06 16:28 ` J. Bruce Fields
2010-07-06 17:19 ` J. Bruce Fields [this message]
2010-07-17 12:30   ` [PATCH] timers.c: document meaning of deferrable timer Artem Bityutskiy
2010-07-17 12:30     ` Artem Bityutskiy

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=20100706171908.GL7387@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=dedekind1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=tglx@linutronix.de \
    --cc=venkatesh.pallipadi@intel.com \
    /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.