From: Andrew Morton <akpm@linux-foundation.org>
To: Yinghai Lu <Yinghai.Lu@Sun.COM>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pci: don't load acpi_php when acpi is disabled
Date: Tue, 11 Dec 2007 20:46:20 -0800 [thread overview]
Message-ID: <20071211204620.6c9acf54.akpm@linux-foundation.org> (raw)
In-Reply-To: <200712112014.40923.yinghai.lu@sun.com>
On Tue, 11 Dec 2007 20:14:40 -0800 Yinghai Lu <Yinghai.Lu@Sun.COM> wrote:
> [PATCH] pci: don't load acpi_php when acpi is disabled
>
> when acpi=off and pci=nomsi, don't load acpiphp
>
> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
>
> diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c
> index c8c2638..84d66ba 100644
> --- a/drivers/pci/hotplug/acpiphp_core.c
> +++ b/drivers/pci/hotplug/acpiphp_core.c
> @@ -392,6 +392,9 @@ static int __init acpiphp_init(void)
> {
> info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
>
> + if (acpi_pci_disabled)
> + return 0;
> +
> acpiphp_debug = debug;
>
> /* read all the ACPI info from the system */
> @@ -401,6 +404,9 @@ static int __init acpiphp_init(void)
>
> static void __exit acpiphp_exit(void)
> {
> + if (acpi_pci_disabled)
> + return 0;
> +
> /* deallocate internal data structures etc. */
> acpiphp_glue_exit();
> }
OK, but there is some information missing in your patch descriptions: what
effect do these patches have? Does the kernel crash without them? Or is
there no effect at all? Or something in between?
Thanks.
next prev parent reply other threads:[~2007-12-12 4:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 4:14 Yinghai Lu
2007-12-12 4:46 ` Andrew Morton [this message]
2007-12-12 5:49 ` Yinghai Lu
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=20071211204620.6c9acf54.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Yinghai.Lu@Sun.COM \
--cc=linux-kernel@vger.kernel.org \
/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®