On Fri, Jan 02, 2009 at 09:07:29PM +0100, Janusz Dziemidowicz wrote:
> 2009/1/1 Kyle McMartin <[email protected]>:
> > 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);
> >
>
> That's exactly the same way I've fixed this (I was about to post it
> here). Thanks anyway:)
>
Excellent, cheers.
Kyle
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]