Re: getting processor numbers

From: Eric Dumazet
Date: Tue Apr 03 2007 - 16:33:05 EST


Ulrich Drepper a Ãcrit :
Siddha, Suresh B wrote:
No. Logical cpu hotplug uses these interfaces to make a cpu go offline
and online.

You missed my sarcasms, email is bad for conveying it. The point is
nobody really cares about that hotplug nonsense to have noticed the bug.
And still does this nonsense prevent real problems from being addressed.


Please dont focus on /sys being your holy gral.

1) AFAIK /sys/devices/system/cpu was not designed to meet glibc needs.

2) Many production machines dont mount /sys at all

$ uname -r
2.6.20
$ ls -al /sys/devices/system/cpu
ls: /sys/devices/system/cpu: No such file or directory
$ grep processor /proc/cpuinfo
processor : 0
processor : 1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/