Re: Need help with virt_install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux