[PATCH v7 116/120] x86/cpu/transmeta: Remove x86_capability[] CPUID initialization
"Ahmed S. Darwish" <[email protected]> Thu, 28 May 2026 17:39:18 +0200
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
X86_FEATURE queries are now routed to the CPUID tables instead of to x86_capability[]. Remove all direct CPUID queries which populate x86_capability[]. Signed-off-by: Ahmed S. Darwish <[email protected]> --- arch/x86/kernel/cpu/transmeta.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/x86/kernel/cpu/transmeta.c b/arch/x86/kernel/cpu/transmeta.c index 991e11d5c28a..5e848f4eb5f5 100644 --- a/arch/x86/kernel/cpu/transmeta.c +++ b/arch/x86/kernel/cpu/transmeta.c @@ -10,14 +10,6 @@ #include "cpu.h" -static void early_init_transmeta(struct cpuinfo_x86 *c) -{ - const struct leaf_0x80860000_0 *l = cpuid_leaf(c, 0x80860000); - - if (l && l->max_tra_leaf >= 0x80860001) - c->x86_capability[CPUID_8086_0001_EDX] = cpuid_edx(0x80860001); -} - /* * If CPU revision is 0x02000000, then CPUID(0x80860002) should be used instead. */ @@ -75,7 +67,6 @@ static void init_transmeta(struct cpuinfo_x86 *c) { unsigned int cap_mask, uk; - early_init_transmeta(c); cpu_detect_cache_sizes(c); print_cpu_revision(c); @@ -85,7 +76,6 @@ static void init_transmeta(struct cpuinfo_x86 *c) rdmsr(0x80860004, cap_mask, uk); wrmsr(0x80860004, ~0, uk); cpuid_refresh_leaf(c, 0x1); - c->x86_capability[CPUID_1_EDX] = cpuid_edx(0x00000001); wrmsr(0x80860004, cap_mask, uk); /* All Transmeta CPUs have a constant TSC */ @@ -103,7 +93,6 @@ static void init_transmeta(struct cpuinfo_x86 *c) static const struct cpu_dev transmeta_cpu_dev = { .c_vendor = "Transmeta", .c_ident = { "GenuineTMx86", "TransmetaCPU" }, - .c_early_init = early_init_transmeta, .c_init = init_transmeta, .c_x86_vendor = X86_VENDOR_TRANSMETA, }; -- 2.54.0