On 03/16/2011 01:45 PM, JB wrote:
> JD<jd1008<at>  gmail.com>  writes:
>
>> ...
>> is the missing /sys/devices/system/cpu/cpu0/topology/physical_package_id
>> caused by kernel configuration settings?
>> ...
> http://www.kernel.org/doc/Documentation/cputopology.txt
> ...
> 1) /sys/devices/system/cpu/cpuX/topology/physical_package_id:
> ...
> For an architecture to support this feature, it must define some of
> these macros in include/asm-XXX/topology.h:
> #define topology_physical_package_id(cpu)
> ...
>
> $ grep -ir "#define topology_physical_package_id(cpu)"
> rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/
> ...
> rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/arch/ia64/include
> /asm/topology.h:#define
> topology_physical_package_id(cpu)     (cpu_data(cpu)->socket_id)
> rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/arch/x86/include
> /asm/topology.h:#define
> topology_physical_package_id(cpu)     (cpu_data(cpu).phys_proc_id)
> rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/arch/sparc/include
> /asm/topology_64.h:#define
> topology_physical_package_id(cpu)     (cpu_data(cpu).proc_id)
>
> $ less -i rpmbuild/BUILD/kernel-2.6.35.fc14/linux-2.6.35.i686/arch/x86/include
> /asm/topology.h
> ...
> #ifdef CONFIG_X86_32<============
> # ifdef CONFIG_X86_HT<============
> #  define ENABLE_TOPO_DEFINES
> # endif
> #else
> # ifdef CONFIG_SMP<============
> #  define ENABLE_TOPO_DEFINES
> # endif
> #endif
> ...
> #ifdef ENABLE_TOPO_DEFINES
> #define topology_physical_package_id(cpu)       (cpu_data(cpu).phys_proc_id)
> ...
>
> JB
>
>
Thank you  very much JB.
That explains it.
Since my cpu is a Unicore (amd athlon 3700+), it does not even have 
hyper threading,
and SMP is not enabled in configuration (my choice), so kernel does not 
support cpu topology.
My kernel local build is that of mainline kernel  2.6.38
from kernel.org.

Cheers,

JD
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Reply via email to