]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/include/asm/mrst.h
x86, mrst: make mrst_identify_cpu() an inline returning enum
[net-next-2.6.git] / arch / x86 / include / asm / mrst.h
index 67ad31545778b17b37e6b56cea35c1827f191823..1869c18d15cab03d6e712f7d3b5c2a0f6fe3752f 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _ASM_X86_MRST_H
 #define _ASM_X86_MRST_H
 extern int pci_mrst_init(void);
-extern int mrst_identify_cpu(void);
 extern int mrst_timer_options __cpuinitdata;
 int __init sfi_parse_mrtc(struct sfi_table_header *table);
 
@@ -27,6 +26,12 @@ enum mrst_cpu_type {
        MRST_CPU_CHIP_PENWELL,
 };
 
+extern enum mrst_cpu_type __mrst_cpu_chip;
+static enum mrst_cpu_type mrst_identify_cpu(void)
+{
+       return __mrst_cpu_chip;
+}
+
 enum mrst_timer_options {
        MRST_TIMER_DEFAULT,
        MRST_TIMER_APBT_ONLY,