aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/dmi_scan.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2011-03-09 16:31:00 +0000
committerJan Beulich <jbeulich@novell.com>2011-03-09 16:31:00 +0000
commitcba76631d1fc7b511facfca6449a0c1d5565fbf0 (patch)
tree566b375a761c58618a3cdb4e6e6d970c9760a735 /xen/arch/x86/dmi_scan.c
parent007f425ac5d2bc0b607fb4fb429ad92315f52de1 (diff)
downloadxen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.tar.gz
xen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.tar.bz2
xen-cba76631d1fc7b511facfca6449a0c1d5565fbf0.zip
move various bits into .init.* sections
This also includes the removal of some entirely unused functions. The patch builds upon the makefile adjustments done in the earlier sent patch titled "move more kernel decompression bits to .init.* sections". Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/dmi_scan.c')
-rw-r--r--xen/arch/x86/dmi_scan.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/xen/arch/x86/dmi_scan.c b/xen/arch/x86/dmi_scan.c
index 5193f2ccfa..22ee53925c 100644
--- a/xen/arch/x86/dmi_scan.c
+++ b/xen/arch/x86/dmi_scan.c
@@ -150,7 +150,7 @@ static int __init dmi_iterate(void (*decode)(struct dmi_header *))
return -1;
}
-static char *dmi_ident[DMI_STRING_MAX];
+static char *__initdata dmi_ident[DMI_STRING_MAX];
/*
* Save a DMI string
@@ -456,7 +456,7 @@ void __init dmi_scan_machine(void)
* returns non zero or we hit the end. Callback function is called for
* each successfull match. Returns the number of matches.
*/
-int dmi_check_system(struct dmi_system_id *list)
+int __init dmi_check_system(struct dmi_system_id *list)
{
int i, count = 0;
struct dmi_system_id *d = list;
@@ -480,18 +480,10 @@ fail: d++;
return count;
}
-EXPORT_SYMBOL(dmi_check_system);
-
-/**
- * dmi_get_system_info - return DMI data value
- * @field: data index (see enum dmi_filed)
- *
- * Returns one DMI data value, can be used to perform
- * complex DMI data checks.
- */
-char * dmi_get_system_info(int field)
+void __init dmi_end_boot(void)
{
- return dmi_ident[field];
-}
+ unsigned int i;
-EXPORT_SYMBOL(dmi_get_system_info);
+ for ( i = 0; i < DMI_STRING_MAX; ++i )
+ xfree(dmi_ident[i]);
+}