public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] SGI Altix IA64 mmtimer: Eliminate long interval timer
Date: Thu, 07 Oct 2010 22:42:56 +0000	[thread overview]
Message-ID: <20101007154256.aedacb62.akpm@linux-foundation.org> (raw)
In-Reply-To: <20101007143941.GA10653@sgi.com>

On Thu, 7 Oct 2010 09:39:41 -0500
Dimitri Sivanich <sivanich@sgi.com> wrote:

> This patch for SGI Altix/IA64 eliminates interval long timer holdoffs in
> cases where we don't start an interval timer before the expiration time.
> This sometimes happens when a number of interval timers on the same shub
> with the same interval run simultaneously.
> 

Grumble.

> --- linux-2.6.orig/drivers/char/mmtimer.c	2010-10-07 09:34:29.837725250 -0500
> +++ linux-2.6/drivers/char/mmtimer.c	2010-10-07 09:34:31.609948769 -0500
> @@ -174,9 +174,8 @@ static void mmtimer_setup_int_2(int cpu,
>   * in order to insure that the setup succeeds in a deterministic time frame.
>   * It will check if the interrupt setup succeeded.
>   */
> -static int mmtimer_setup(int cpu, int comparator, unsigned long expires)
> +static int mmtimer_setup(int cpu, int comparator, unsigned long expires, u64 *r)

Choosing a variable's identifier is your last chance to explain to the
reader what that variable does.  And you blew it!

>  
> ...
>
> +static unsigned mmtimer_intrvl_retry_incr = MMTIMER_INTRVL_RETRY_INCR_DEFAULT;
> +module_param(mmtimer_intrvl_retry_incr, uint, 0644);
> +MODULE_PARM_DESC(mmtimer_intrvl_retry_incr,
> +	"RTC ticks to add to expiration on interval retry (default 40)");

And the problem with abbreviations like "intrvl" is that they're hard
to remember.  Which is why in the kernel we much prefer to use the
entire English word.


I'm unable to work out how important this patch is.  I'm presently
assuming 2.6.37.

  reply	other threads:[~2010-10-07 22:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07 14:39 [PATCH] SGI Altix IA64 mmtimer: Eliminate long interval timer Dimitri Sivanich
2010-10-07 22:42 ` Andrew Morton [this message]
2010-10-08 13:23 ` Dimitri Sivanich

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=20101007154256.aedacb62.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-ia64@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox