Re: [PATCH 4/7] perf: Check if HT is supported and enabled

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lin Ming
Date: Tuesday, December 28, 2010 - 1:51 am

On Tue, 2010-12-28 at 16:44 +0800, Lin Ming wrote:

This function can be simplified as below,

static bool ht_enabled()
{
        if (!cpu_has(&boot_cpu_data, X86_FEATURE_HT))
                return false;

        return smp_num_siblings > 1;
}

But this still can't detect if HT is on or off.
smp_num_siblings is always 2 even if HT is disabled in BIOS.

Any idea how to detect if HT is on or not?

Thanks,
Lin Ming



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, Lin Ming, (Tue Dec 28, 1:51 am)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, H. Peter Anvin, (Mon Jan 3, 12:53 pm)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, Stephane Eranian, (Tue Jan 4, 6:38 am)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, Stephane Eranian, (Tue Jan 4, 6:52 am)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, Stephane Eranian, (Tue Jan 4, 8:35 am)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, Valdis.Kletnieks, (Tue Jan 4, 11:55 am)
Re: [PATCH 4/7] perf: Check if HT is supported and enabled, H. Peter Anvin, (Tue Jan 4, 12:00 pm)