Re: [PATCH] DevFS support for /dev/cpu/X/(cpuid|msr)

From: H. Peter Anvin (
Date: Sun Jan 06 2002 - 16:08:54 EST

Matt Dainty wrote:

> Okey dokey,
> Please find attached a second, better patch to add devfs support to the i386
> cpuid and msr drivers. Now it doesn't nuke the cpu/X directories on
> unloading and only enumerates CPUs based on smp_num_cpus instead of NR_CPUS.

If you don't understand why this is idiotic, then let me enlighten you:
there is no sensible reason why /dev/cpu/%d should only be populated
after having run a CPU-dependent device driver. /dev/cpu/%d should be
always populated; heck, that's the only way you can sensibly handle
hotswapping CPUs.

I WILL NOT accept a patch as long as devfs is as fucked in the head as
it currently is. Unfortunately, that seems like it will be a long long


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:31 EST