]> xenbits.xensource.com Git - xen.git/commitdiff
/home/jbeulich/tmp/commit.txt
authorJan Beulich <jbeulich@suse.com>
Mon, 8 Jul 2013 11:15:10 +0000 (13:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Jul 2013 11:15:10 +0000 (13:15 +0200)
tools/firmware/hvmloader/acpi/build.c

index 7281b972fc7c44e8331956aa51a59ab2df67b4b8..f1dd3f0e690e462ffb53584dbad70a397c18e2ca 100644 (file)
@@ -268,11 +268,13 @@ static int construct_secondary_tables(unsigned long *table_ptrs,
         table_ptrs[nr_tables++] = (unsigned long)madt;
     }
 
-    /* HPET. Always included in DSDT, so always include it here too. */
-    /* (And it's unconditionally required by Windows SVVP tests.) */
-    hpet = construct_hpet();
-    if (!hpet) return -1;
-    table_ptrs[nr_tables++] = (unsigned long)hpet;
+    /* HPET. */
+    if ( hpet_exists(ACPI_HPET_ADDRESS) )
+    {
+        hpet = construct_hpet();
+        if (!hpet) return -1;
+        table_ptrs[nr_tables++] = (unsigned long)hpet;
+    }
 
     /* WAET. */
     waet = construct_waet();