Errr.. you may want to use
/devices/class/cpu/devices/[0..num_online_cpus()]. There are symlinks
here for every registered CPU device, no matter how some NUMA wacko
rearranges the root/sys directory topology. ;)
Cheers!
-Matt
> The CPU actually spins with interrupts off, doing cpu_relax() and
> polling a variable. It's basically useful for testing the unplug
> infrastructure and benchmarking.
>
> http://www.kernel.org/pub/linux/kernel/people/rusty/patches/hotcpu-x86-28-10-2002.2.5.44.diff.gz
>
> Cheers!
> Rusty.
> --
> Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
> -
> 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/
>
-
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/