lkml.org 
[lkml]   [2005]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] disable_local_APIC() is only available when CONFIG_X86_LOCAL_APIC is defined
Date

`disable_local_APIC' is only available when CONFIG_X86_LOCAL_APIC is defined :

arch/i386/kernel/crash.c: In function `crash_nmi_callback':
arch/i386/kernel/crash.c:153: warning: implicit declaration of function `disable_local_APIC'
arch/i386/kernel/crash.c: In function `nmi_shootdown_cpus':
arch/i386/kernel/crash.c:195: warning: implicit declaration of function `disable_local_APIC'

There may be a better fix, but the below seems to do the trick.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>

--- linux-2.6.13-mm1-orig/arch/i386/kernel/crash.c 2005-09-02 23:59:27.000000000 +0200
+++ linux-2.6.13-mm1/arch/i386/kernel/crash.c 2005-09-05 01:54:21.000000000 +0200
@@ -150,7 +150,9 @@ static int crash_nmi_callback(struct pt_
regs = &fixed_regs;
}
crash_save_this_cpu(regs, cpu);
+#ifdef CONFIG_X86_LOCAL_APIC
disable_local_APIC();
+#endif
atomic_dec(&waiting_for_crash_ipi);
/* Assume hlt works */
halt();
@@ -190,7 +192,9 @@ static void nmi_shootdown_cpus(void)
}

/* Leave the nmi callback set */
+#ifdef CONFIG_X86_LOCAL_APIC
disable_local_APIC();
+#endif
}
#else
static void nmi_shootdown_cpus(void)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-05 01:59    [W:0.061 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site