SMT_ID or APIC_ID caching

From: Wilkerson, Bryan P
Date: Fri Sep 02 2005 - 09:57:01 EST



On a P4 with HT, I'm trying to get the logical processor ID (SMT_ID) for
the currently executing thread in kernel mode. The SMT_ID is part of
the APIC_ID which is in EBX[24:16] after calling cpuid with EAX=1.

Is the SMT_ID or APIC_ID per_cpu cached by the kernel anywhere?

Thanks,

-bryan
-
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/