On Mon, Dec 29, 2008 at 11:14:07AM +0100, Janusz Dziemidowicz wrote:
> irqbalance detects incorrect number of processors on kernel 2.6.26. I
> have a single dual core processor (/proc/cpuinfo available below), but
> irqbalance debug shows:
> 

Hrm, we're carrying a fairly large patch against irqbalance that deals
with cpu parsing in Fedora that hasn't made it upstream for some reason.
I'll poke...

In the meantime:

Index: cputree.c
===================================================================
--- cputree.c   (revision 19)
+++ cputree.c   (working copy)
@@ -319,7 +319,8 @@
                return;
        do {
                entry = readdir(dir);
-                if (entry && strlen(entry->d_name)>3 && 
strstr(entry->d_name,"cpu")) {
+               if (entry && strlen(entry->d_name)>3 && 
memcmp(entry->d_name,"cpu",3) == 0 &&
+                   isdigit(entry->d_name[3]))
                        char new_path[PATH_MAX];
                        sprintf(new_path, "/sys/devices/system/cpu/%s", 
entry->d_name);
                        do_one_cpu(new_path);



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to