]> Pileus Git - ~andy/linux/blobdiff - drivers/acpi/osl.c
Merge tag 'fbdev-for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/plagnioj...
[~andy/linux] / drivers / acpi / osl.c
index e72186340fec50212f5da151a1e7137dde31d019..6ab2c350552061893ded7355d376406de5d98ed8 100644 (file)
@@ -835,19 +835,9 @@ void acpi_os_stall(u32 us)
  */
 u64 acpi_os_get_timer(void)
 {
-       static u64 t;
-
-#ifdef CONFIG_HPET
-       /* TBD: use HPET if available */
-#endif
-
-#ifdef CONFIG_X86_PM_TIMER
-       /* TBD: default to PM timer if HPET was not available */
-#endif
-       if (!t)
-               printk(KERN_ERR PREFIX "acpi_os_get_timer() TBD\n");
-
-       return ++t;
+       u64 time_ns = ktime_to_ns(ktime_get());
+       do_div(time_ns, 100);
+       return time_ns;
 }
 
 acpi_status acpi_os_read_port(acpi_io_address port, u32 * value, u32 width)
@@ -1715,6 +1705,17 @@ acpi_status acpi_os_release_object(acpi_cache_t * cache, void *object)
 }
 #endif
 
+static int __init acpi_no_auto_ssdt_setup(char *s)
+{
+        printk(KERN_NOTICE PREFIX "SSDT auto-load disabled\n");
+
+        acpi_gbl_disable_ssdt_table_load = TRUE;
+
+        return 1;
+}
+
+__setup("acpi_no_auto_ssdt", acpi_no_auto_ssdt_setup);
+
 acpi_status __init acpi_os_initialize(void)
 {
        acpi_os_map_generic_address(&acpi_gbl_FADT.xpm1a_event_block);