The kernel isn't ever "enabled" for hyperthreading. As unSpawn said, unless a kernel is specifically non-SMP, it will use all apparent CPUs for dispatch. Hyperthreading is of course not really multiple CPUs (cores), hence the use of "apparent".
There is an indicator to assist the scheduler (CONFIG_SCHED_SMT ), but I don't know of a way to test for it other than the obvious scan of the kernel config file, which may not be available in all cases.
|