From: "Rune Torgersen" <runet@innovsys.com>
To: "Peter Zijlstra" <peterz@infradead.org>,
"Gregory Haskins" <ghaskins@novell.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
"Thomas Gleixner" <tglx@linutonix.de>,
"Steven Rostedt" <rostedt@goodmis.org>,
"Arnaldo Carvalho de Melo" <acme@redhat.com>,
<linux-kernel@vger.kernel.org>, <linux-rt-users@vger.kernel.org>
Subject: RE: [PATCH 2/2] sched: fix cpupri priocount
Date: Wed, 4 Jun 2008 16:35:28 -0500 [thread overview]
Message-ID: <DCEAAC0833DD314AB0B58112AD99B93B047FE4EA@ismail.innsys.innovsys.com> (raw)
In-Reply-To: <1212613754.19205.25.camel@lappy.programming.kicks-ass.net>
> > -#define CPUPRI_NR_PRI_WORDS CPUPRI_NR_PRIORITIES/BITS_PER_LONG
> > +#define CPUPRI_NR_PRI_WORDS (CPUPRI_NR_PRIORITIES + >
BITS_PER_LONG/2)/BITS_PER_LONG
>
> (33 + 16) / 32 = 49 / 32 = 1
>
It should not round to neares but round up....
So... #define CPUPRI_NR_PRI_WORDS (CPUPRI_NR_PRIORITIES + BITS_PER_LONG
- 1)/BITS_PER_LONG
=> (33+31)/32 = 64/32 = 2
next prev parent reply other threads:[~2008-06-04 21:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 19:03 [PATCH 0/2] sched: hotplug and cpupri fixes (v2) Gregory Haskins
2008-06-04 19:04 ` [PATCH 1/2] sched: fix cpupri hotplug support Gregory Haskins
2008-06-04 19:04 ` [PATCH 2/2] sched: fix cpupri priocount Gregory Haskins
2008-06-04 21:09 ` Peter Zijlstra
2008-06-04 21:35 ` Rune Torgersen [this message]
2008-06-04 21:52 ` Gregory Haskins
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=DCEAAC0833DD314AB0B58112AD99B93B047FE4EA@ismail.innsys.innovsys.com \
--to=runet@innovsys.com \
--cc=acme@redhat.com \
--cc=ghaskins@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutonix.de \
/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
all inboxes | Powered by JetHome®