From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [TRIVIAL] Re: APIC is not properly suspending in 2.5.67 on UP
Date: Mon, 05 May 2003 14:59:11 +1000 [thread overview]
Message-ID: <20030505050414.399872C0FC@lists.samba.org> (raw)
From: Pavel Machek <pavel@ucw.cz>
Hi!
> >This is needed otherwise APIC thinks it is not active, does not
> >suspend properly, and kills machine.
>
> This can only happen with UP if the machine boots with local
> APIC enabled and the BIOS announces an MP table.
>
> If this is the case, then yes apic_pm_activate() needs to be done.
>
> > Extra whitespace killed (looks
> >ugly). Please apply,
>
> I think some fixes are needed first:
> - You're calling apic_pm_activate() from setup_local_APIC(), which
> is before its definition. This will cause a compile warning, and
> a linkage error if CONFIG_PM=n.
Fixed (by adding function prototype). Please apply,
Pavel
%patch
Index: linux/arch/i386/kernel/apic.c
===================================================================
--- trivial-2.5.69/arch/i386/kernel/apic.c.orig 2003-05-05 14:46:23.000000000 +1000
+++ trivial-2.5.69/arch/i386/kernel/apic.c 2003-05-05 14:46:23.000000000 +1000
@@ -38,6 +38,8 @@
#include "io_ports.h"
+static void apic_pm_activate(void);
+
void __init apic_intr_init(void)
{
#ifdef CONFIG_SMP
@@ -451,6 +453,7 @@
if (nmi_watchdog == NMI_LOCAL_APIC)
setup_apic_nmi_watchdog();
+ apic_pm_activate();
}
#ifdef CONFIG_PM
@@ -587,7 +590,7 @@
#else /* CONFIG_PM */
-static inline void apic_pm_activate(void) { }
+static void apic_pm_activate(void) { }
#endif /* CONFIG_PM */
@@ -654,9 +657,7 @@
nmi_watchdog = NMI_LOCAL_APIC;
printk("Found and enabled local APIC!\n");
-
apic_pm_activate();
-
return 0;
no_apic:
@@ -1135,11 +1136,8 @@
}
verify_local_APIC();
-
connect_bsp_APIC();
-
phys_cpu_present_map = 1 << boot_cpu_physical_apicid;
-
setup_local_APIC();
if (nmi_watchdog == NMI_LOCAL_APIC)
@@ -1150,6 +1148,5 @@
setup_IO_APIC();
#endif
setup_boot_APIC_clock();
-
return 0;
}
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: Pavel Machek <pavel@ucw.cz>: Re: APIC is not properly suspending in 2.5.67 on UP
reply other threads:[~2003-05-05 4:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030505050414.399872C0FC@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®