From 7e970c18f85f99acc678d90128b6e01dce1bf273 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 01 Nov 2024 02:40:12 +0000
Subject: [PATCH] gmac get mac form eeprom
---
kernel/arch/x86/kernel/smpboot.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/kernel/arch/x86/kernel/smpboot.c b/kernel/arch/x86/kernel/smpboot.c
index e8e5515..e9a7b3c 100644
--- a/kernel/arch/x86/kernel/smpboot.c
+++ b/kernel/arch/x86/kernel/smpboot.c
@@ -258,7 +258,7 @@
x86_platform.nmi_init();
/* enable local interrupts */
- local_irq_enable();
+ local_irq_enable_full();
x86_cpuinit.setup_percpu_clockev();
@@ -1133,7 +1133,6 @@
{
int apicid = apic->cpu_present_to_apicid(cpu);
int cpu0_nmi_registered = 0;
- unsigned long flags;
int err, ret = 0;
lockdep_assert_irqs_enabled();
@@ -1184,9 +1183,9 @@
* Check TSC synchronization with the AP (keep irqs disabled
* while doing so):
*/
- local_irq_save(flags);
+ local_irq_disable_full();
check_tsc_sync_source(cpu);
- local_irq_restore(flags);
+ local_irq_enable_full();
while (!cpu_online(cpu)) {
cpu_relax();
@@ -1654,7 +1653,7 @@
/*
* With physical CPU hotplug, we should halt the cpu
*/
- local_irq_disable();
+ local_irq_disable_full();
}
/**
--
Gitblit v1.6.2