From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] Re: [PATCH] find_next_zero_bit
Date: Fri, 25 Jan 2002 19:33:49 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805935@msgid-missing> (raw)
Applied.
Thanks,
--david
>>>>> On Fri, 25 Jan 2002 19:08:43 +0100 (MET), Erich Focht <efocht@ess.nec.de> said:
Erich> Hi, the following little patch repairs the function
Erich> find_next_zero_bit() for ia64 platforms. Somehow this small
Erich> piece of code went lost from the ia64 version. The problem is
Erich> that the function returns results larger than the size of the
Erich> bitmap if all bits are set (ignores stop-bits) and the size
Erich> is not a multiple of sizeof(long). This lead to crashes of
Erich> Ingo's new scheduler under heavy load.
Erich> Regards, Erich
Erich> --- 2.4.17-ia64-kdb-j6/include/asm-ia64/bitops.h Tue Jan 15
Erich> 15:21:08 2002 +++
Erich> 2.4.17-ia64-kdb-j6ia64/include/asm-ia64/bitops.h Fri Jan 25
Erich> 19:45:31 2002 @@ -357,6 +357,8 @@ tmp = *p; found_first: tmp
Erich> |= ~0UL << size; + if (tmp = ~0UL) /* Are any bits zero? */
Erich> + return result + size; /* Nope. */ found_middle: return
Erich> result + ffz(tmp); }
reply other threads:[~2002-01-25 19:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-linux-ia64-105590698805935@msgid-missing \
--to=davidm@hpl.hp.com \
--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