From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Remove unused ACPI functions
Date: Thu, 18 Dec 2003 20:22:57 +0000 [thread overview]
Message-ID: <marc-linux-ia64-107177902124173@msgid-missing> (raw)
ia64: Remove unused ACPI functions.
Remove unused functions:
acpi_get_prt()
acpi_get_interrupt_model()
acpi_get_addr_space()
=== arch/ia64/kernel/acpi.c 1.55 vs edited ==--- 1.55/arch/ia64/kernel/acpi.c Wed Oct 8 07:16:20 2003
+++ edited/arch/ia64/kernel/acpi.c Tue Nov 18 10:05:32 2003
@@ -610,66 +610,6 @@
return 0;
}
-/*
- * PCI Interrupt Routing
- */
-
-#ifdef CONFIG_PCI
-int __init
-acpi_get_prt (struct pci_vector_struct **vectors, int *count)
-{
- struct pci_vector_struct *vector;
- struct list_head *node;
- struct acpi_prt_entry *entry;
- int i = 0;
-
- if (!vectors || !count)
- return -EINVAL;
-
- *vectors = NULL;
- *count = 0;
-
- if (acpi_prt.count < 0) {
- printk(KERN_ERR PREFIX "No PCI interrupt routing entries\n");
- return -ENODEV;
- }
-
- /* Allocate vectors */
-
- *vectors = kmalloc(sizeof(struct pci_vector_struct) * acpi_prt.count, GFP_KERNEL);
- if (!(*vectors))
- return -ENOMEM;
-
- /* Convert PRT entries to IOSAPIC PCI vectors */
-
- vector = *vectors;
-
- list_for_each(node, &acpi_prt.entries) {
- entry = (struct acpi_prt_entry *)node;
- vector[i].segment = entry->id.segment;
- vector[i].bus = entry->id.bus;
- vector[i].pci_id = ((u32) entry->id.device << 16) | 0xffff;
- vector[i].pin = entry->pin;
- vector[i].irq = entry->link.index;
- i++;
- }
- *count = acpi_prt.count;
- return 0;
-}
-#endif /* CONFIG_PCI */
-
-/* Assume IA64 always use I/O SAPIC */
-
-int __init
-acpi_get_interrupt_model (int *type)
-{
- if (!type)
- return -EINVAL;
-
- *type = ACPI_IRQ_MODEL_IOSAPIC;
- return 0;
-}
-
int
acpi_irq_to_vector (u32 gsi)
{
=== include/asm-ia64/acpi.h 1.11 vs edited ==--- 1.11/include/asm-ia64/acpi.h Sun Oct 5 02:07:48 2003
+++ edited/include/asm-ia64/acpi.h Tue Nov 18 10:06:02 2003
@@ -88,11 +88,8 @@
const char *acpi_get_sysname (void);
int acpi_request_vector (u32 int_type);
-int acpi_get_prt (struct pci_vector_struct **vectors, int *count);
-int acpi_get_interrupt_model (int *type);
int acpi_register_irq (u32 gsi, u32 polarity, u32 trigger);
int acpi_irq_to_vector (u32 irq);
-int acpi_get_addr_space (void *obj, u8 type, u64 *base, u64 *length,u64 *tra);
#ifdef CONFIG_ACPI_NUMA
#include <asm/numa.h>
reply other threads:[~2003-12-18 20:22 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=marc-linux-ia64-107177902124173@msgid-missing \
--to=bjorn.helgaas@hp.com \
--cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.