[RFC][PATCH 15/34] x86/cpu: Remove default x86_phys_bits assignment

From: Dave Hansen
Date: Thu Feb 22 2024 - 13:47:27 EST



From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>

This was presumably needed for *some* reason at some point. It is
useless now. Remove it.

Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
---

b/arch/x86/kernel/setup.c | 1 -
1 file changed, 1 deletion(-)

diff -puN arch/x86/kernel/setup.c~no-early-max_phys_bits-assign arch/x86/kernel/setup.c
--- a/arch/x86/kernel/setup.c~no-early-max_phys_bits-assign 2024-02-22 10:08:55.736738995 -0800
+++ b/arch/x86/kernel/setup.c 2024-02-22 10:08:55.740739152 -0800
@@ -752,7 +752,6 @@ void __init setup_arch(char **cmdline_p)
__flush_tlb_all();
#else
printk(KERN_INFO "Command line: %s\n", boot_command_line);
- boot_cpu_data.x86_phys_bits = MAX_PHYSMEM_BITS;
#endif

/*
_