WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove acpi_count_madt functions. Only appear to be used

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove acpi_count_madt functions. Only appear to be used
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Dec 2005 20:42:23 +0000
Delivery-date: Wed, 21 Dec 2005 20:47:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 934470721c46e85651a364ab5d8369e8fde8798d
# Parent  8b322047c80ff589ef2ceb54b3c2a54f4c27da64
Remove acpi_count_madt functions. Only appear to be used
for diagnostic tracing in xen/ia64.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 8b322047c80f -r 934470721c46 xen/arch/ia64/xen/acpi.c
--- a/xen/arch/ia64/xen/acpi.c  Wed Dec 21 19:17:22 2005
+++ b/xen/arch/ia64/xen/acpi.c  Wed Dec 21 19:18:19 2005
@@ -604,17 +604,8 @@
        if (acpi_table_parse_madt(ACPI_MADT_LAPIC_ADDR_OVR, 
acpi_parse_lapic_addr_ovr, 0) < 0)
                printk(KERN_ERR PREFIX "Error parsing LAPIC address override 
entry\n");
 
-#ifdef CONFIG_SMP
-       int count;
-       if ((count = acpi_table_count_madt(ACPI_MADT_LSAPIC)) < 1) {
-               printk(KERN_ERR PREFIX "Error parsing MADT - no LSAPIC 
entries\n");
-       } else {
-               acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_parse_lsapic, 
count);
-       }
-#else
        if (acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_parse_lsapic, NR_CPUS) 
< 1)
                printk(KERN_ERR PREFIX "Error parsing MADT - no LSAPIC 
entries\n");
-#endif
 
        if (acpi_table_parse_madt(ACPI_MADT_LAPIC_NMI, acpi_parse_lapic_nmi, 0) 
< 0)
                printk(KERN_ERR PREFIX "Error parsing LAPIC NMI entry\n");
diff -r 8b322047c80f -r 934470721c46 xen/drivers/acpi/tables.c
--- a/xen/drivers/acpi/tables.c Wed Dec 21 19:17:22 2005
+++ b/xen/drivers/acpi/tables.c Wed Dec 21 19:18:19 2005
@@ -607,60 +607,3 @@
 
        return 0;
 }
-
-int __init
-acpi_table_count_madt_family (
-       enum acpi_table_id      id,
-       unsigned long           madt_size,
-       int                     entry_id)
-{
-       void                    *madt = NULL;
-       acpi_table_entry_header *entry;
-       unsigned int            count = 0;
-       unsigned long           madt_end;
-       unsigned int            i;
-
-       /* Locate the MADT (if exists). There should only be one. */
-
-       for (i = 0; i < sdt_count; i++) {
-               if (sdt_entry[i].id != id)
-                       continue;
-               madt = (void *)
-                       __acpi_map_table(sdt_entry[i].pa, sdt_entry[i].size);
-               if (!madt) {
-                       printk(KERN_WARNING PREFIX "Unable to map %s\n",
-                               acpi_table_signatures[id]);
-                       return -ENODEV;
-               }
-               break;
-       }
-
-       if (!madt) {
-               printk(KERN_WARNING PREFIX "%s not present\n",
-                       acpi_table_signatures[id]);
-               return -ENODEV;
-       }
-
-       madt_end = (unsigned long) madt + sdt_entry[i].size;
-
-       /* Parse all entries looking for a match. */
-
-       entry = (acpi_table_entry_header *)
-               ((unsigned long) madt + madt_size);
-
-       while (((unsigned long) entry) + sizeof(acpi_table_entry_header) < 
madt_end) {
-               if (entry->type == entry_id) count++;
-
-               entry = (acpi_table_entry_header *)
-                       ((unsigned long) entry + entry->length);
-       }
-
-       return count;
-}
-
-
-int __init
-acpi_table_count_madt (enum acpi_madt_entry_id id)
-{
-       return acpi_table_count_madt_family(ACPI_APIC, sizeof(struct 
acpi_table_madt), id);
-}
diff -r 8b322047c80f -r 934470721c46 xen/include/xen/acpi.h
--- a/xen/include/xen/acpi.h    Wed Dec 21 19:17:22 2005
+++ b/xen/include/xen/acpi.h    Wed Dec 21 19:18:19 2005
@@ -390,7 +390,6 @@
 void acpi_table_print (struct acpi_table_header *header, unsigned long 
phys_addr);
 void acpi_table_print_madt_entry (acpi_table_entry_header *madt);
 void acpi_table_print_srat_entry (acpi_table_entry_header *srat);
-int acpi_table_count_madt (enum acpi_madt_entry_id id);
 
 /* the following four functions are architecture-dependent */
 void acpi_numa_slit_init (struct acpi_table_slit *slit);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove acpi_count_madt functions. Only appear to be used, Xen patchbot -unstable <=