|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/cpu: Drop default_init() and default_cpu
commit 63ddf5027fb229c42653df27579eab97dc8e9564
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Jan 19 11:27:12 2026 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Sat Apr 4 12:20:11 2026 +0200
x86/cpu: Drop default_init() and default_cpu
While the comment is reasonable, clearing SEP as the only action for an
unknown CPU is useless. Drop the infrastructure.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/cpu/common.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/xen/arch/x86/cpu/common.c b/xen/arch/x86/cpu/common.c
index 444aa9cb4d..dd88694a72 100644
--- a/xen/arch/x86/cpu/common.c
+++ b/xen/arch/x86/cpu/common.c
@@ -99,15 +99,6 @@ bool __init is_forced_cpu_cap(unsigned int cap)
return test_bit(cap, forced_caps) || test_bit(cap, cleared_caps);
}
-static void cf_check default_init(struct cpuinfo_x86 * c)
-{
- /* Not much we can do here... */
- __clear_bit(X86_FEATURE_SEP, c->x86_capability);
-}
-
-static const struct cpu_dev __initconst_cf_clobber __used default_cpu = {
- .c_init = default_init,
-};
static struct cpu_dev __ro_after_init actual_cpu;
static DEFINE_PER_CPU(uint64_t, msr_misc_features);
@@ -336,7 +327,6 @@ void __init early_cpu_init(bool verbose)
case X86_VENDOR_SHANGHAI: actual_cpu = shanghai_cpu_dev; break;
case X86_VENDOR_HYGON: actual_cpu = hygon_cpu_dev; break;
default:
- actual_cpu = default_cpu;
if (!verbose)
break;
printk(XENLOG_ERR
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |