x86/APIC: rename cmdline_apic

The name hasn't been appropriate for a long time: It covers not only
command line overrides, but also x2APIC pre-enabled state.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich authored and Andrew Cooper committed 2021-11-29 13:53:05 +00:00
1 parent 0ee901ce4b
commit b8a13f487a
1 file changed
+3 -3
+3 -3
View File
@@ -24,7 +24,7 @@ static const struct genapic *const __initconstrel apic_probe[] = {
NULL,
};
static bool_t __initdata cmdline_apic;
static bool __initdata forced_apic;
void __init generic_bigsmp_probe(void)
{
@@ -35,7 +35,7 @@ void __init generic_bigsmp_probe(void)
* - we find more than 8 CPUs in acpi LAPIC listing with xAPIC support
*/
if (!cmdline_apic && genapic.name == apic_default.name)
if (!forced_apic && genapic.name == apic_default.name)
if (apic_bigsmp.probe()) {
genapic = apic_bigsmp;
printk(KERN_INFO "Overriding APIC driver with %s\n",
@@ -65,7 +65,7 @@ void __init generic_apic_probe(void)
check_x2apic_preenabled();
cmdline_apic = genapic.name;
forced_apic = genapic.name;
for (i = 0; !genapic.name && apic_probe[i]; i++) {
if (!apic_probe[i]->probe || apic_probe[i]->probe())
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.