public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: gilles.chanteperdrix@xenomai.org (Gilles Chanteperdrix)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256
Date: Thu, 04 Feb 2010 20:29:52 +0100	[thread overview]
Message-ID: <4B6B2030.3040306@xenomai.org> (raw)
In-Reply-To: <f17812d71002041109u3d7ea08ej201708fa462e087d@mail.gmail.com>

Eric Miao wrote:
> -#if NR_IRQS > 256
> +#if NR_IRQS > 512
> +#define HARDIRQ_BITS	10
> +#elif NR_IRQS > 256
>  #define HARDIRQ_BITS	9
>  #else
>  #define HARDIRQ_BITS	8

Would not it be possible to use

#define HARDIRQ_BITS order_base_2(NR_IRQS)

to remove any limitation?

-- 
					    Gilles.

  parent reply	other threads:[~2010-02-04 19:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 19:09 [RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256 Eric Miao
2010-02-04 19:14 ` Russell King - ARM Linux
2010-02-04 19:18   ` Eric Miao
2010-02-04 19:18     ` Eric Miao
2010-02-04 19:27       ` Russell King - ARM Linux
2010-02-04 19:29 ` Gilles Chanteperdrix [this message]
2010-02-04 20:05   ` Russell King - ARM Linux
2010-02-04 20:51     ` Eric Miao

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=4B6B2030.3040306@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=linux-arm-kernel@lists.infradead.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