From nobody Thu Apr 2 20:20:45 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2578392820 for ; Fri, 27 Mar 2026 02:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774578156; cv=none; b=RWybICuoJ3UPYrUBjGuvzS9Wff3OC6brL90mGM7o5aNy5neAblSyRhZnwBucDNNDqaW2EX8vYQb5OixZk6Dq70LJ/oYAIYICCvkyLN9QjS/DjIfG7BlfcPKbcYSpQuELYnPGwT7q+I88ZcpfhtJ0tzQXFpE10VJb95m375F7ifw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774578156; c=relaxed/simple; bh=O1DUzfl/y2F/gnNIzuI8mbSsD1Ph8MwszabFmfGynUU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OOiQ4ynC3vTLQRpGQ+Cpr4T4UhY+vupOW7ArYY0lxLP1oj3j97AoWibasdEeGRKKyO6mrIxEUuy5eD0bdE5twYVoZ8UB/8yhjvLk107EvoKQarzDD47fCYpkeEUkOQ2sHk6wqcTxoF11GnaOxNmcimdG3Q2pZpmeYpWjUewcV38= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=m5A1Kb2X; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MePTuquC; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="m5A1Kb2X"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MePTuquC" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774578154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OAqQxD4w7NdN72ZHq9rATOZSGwIFSb4iHHdAnOHx8ho=; b=m5A1Kb2XVdmwknze8+2os1nMctvpR555izg7F+nZzLWpaLpZ8sU7rL/ByKKisG2+UEinKs zYLLdh20q+taFQNF/QO5CS7JkYtBzBK2hl0kgkVZ2GmpVCnF/wo5rD0j2O0nbMdvXJ+1NN 94IJubFX2O7B5TVXKZ5NZafKxGvgxEkIfk/N4CG6LsfMFQg/HUwcMZQc50iYpbNbbLrlOD Xuo5ShDMuH+ZBRhYlA3soqQ4mcL2G13pPUmcExtgzj0OcxtQokmaVkdN/eEnyMfi4tpCW2 NorFuFHEloyYT6lMHMOfGA9+g0VtXaqfKeB9UXIQBpZ71cQfhalgmS36QCPV4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774578154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OAqQxD4w7NdN72ZHq9rATOZSGwIFSb4iHHdAnOHx8ho=; b=MePTuquCidQxnMp2f64seZvlxcVGBdcCnpu4qluUSnSZgIXa/UUHf6yV1n2Aggu3LM8WJ3 rdagW16/oONAAEBw== To: Borislav Petkov , Dave Hansen , Ingo Molnar Cc: Thomas Gleixner , Andrew Cooper , "H. Peter Anvin" , Sean Christopherson , David Woodhouse , Peter Zijlstra , Christian Ludloff , Sohil Mehta , John Ogness , x86@kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v6 87/90] x86/cpu: centaur/zhaoxin: Remove x86_capability[] initialization Date: Fri, 27 Mar 2026 03:16:41 +0100 Message-ID: <20260327021645.555257-88-darwi@linutronix.de> In-Reply-To: <20260327021645.555257-1-darwi@linutronix.de> References: <20260327021645.555257-1-darwi@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- arch/x86/kernel/cpu/centaur.c | 1 - arch/x86/kernel/cpu/zhaoxin.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c index 29688aec2231..8f614003d82c 100644 --- a/arch/x86/kernel/cpu/centaur.c +++ b/arch/x86/kernel/cpu/centaur.c @@ -42,7 +42,6 @@ static void init_c3(struct cpuinfo_x86 *c) * EDX feature bits. Refresh the leaf. */ cpuid_refresh_leaf(c, 0xc0000001); - c->x86_capability[CPUID_C000_0001_EDX] =3D cpuid_edx(0xC0000001); } #ifdef CONFIG_X86_32 /* Cyrix III family needs CX8 & PGE explicitly enabled. */ diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c index 5918f9387c87..7f576f0296b7 100644 --- a/arch/x86/kernel/cpu/zhaoxin.c +++ b/arch/x86/kernel/cpu/zhaoxin.c @@ -41,7 +41,6 @@ static void init_zhaoxin_cap(struct cpuinfo_x86 *c) * EDX feature bits. Refresh the leaf. */ cpuid_refresh_leaf(c, 0xc0000001); - c->x86_capability[CPUID_C000_0001_EDX] =3D cpuid_edx(0xC0000001); } =20 if (c->x86 >=3D 0x6) --=20 2.53.0