lkml.org 
[lkml]   [2004]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation
On Fri, Jun 04, 2004 at 11:12:33AM -0700, William Lee Irwin III wrote:
> while (lower < upper) {

--- nr_cpus.c.orig 2004-06-04 11:16:16.492419568 -0700
+++ nr_cpus.c 2004-06-04 11:16:26.508896832 -0700
@@ -23,7 +23,7 @@
if (!realloc(cpus, 2*upper))
return -ENOMEM;
}
- while (lower < upper) {
+ while (lower < upper - 1) {
middle = (lower + upper)/2;
if (!realloc(cpus, middle))
return -ENOMEM;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.114 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site